Qarpeo Institute Innovate. Learn.Â
HTML
HTML
HTML, or Hypertext Markup Language, is the main language for creating and structuring webpages. It uses tags for formatting elements and is commonly combined with CSS and JavaScript.
- HTML stands for HyperText Markup Language.
- It structures content on web pages.
- HTML is made up of elements.
<!doctype html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
CSS
CSS
CSS, or Cascading Style Sheets, is a language used to define the visual presentation of HTML elements on a webpage. It allows you to style components by adjusting aspects like colors, typography, and spacing to improve both the aesthetics and usability of your site.
- Style pages with colors, fonts, and layouts!
- Make your website look great on any device!
- Use CSS Grid and Flexbox for stunning designs.
h1 {
color: white;
text-align: center;
font-size: 2.5rem;
font-weight: bold;
}
p {
color: red;
text-align: center;
font-size: 20px;
font-family: Verdana, sans-serif;
}
JavaScript
JavaScript
JavaScript (JS) is a versatile language that powers dynamic, interactive web experiences. As the backbone of modern web development, it enables everything from simple animations to complex SPAs and real-time apps.
- JavaScript is a versatile, high-level language that powers dynamic web applications.
- It enables real-time updates, user interactions, and complex functionalities.
- With frameworks like React and Node.js, JavaScript extends beyond the browser to full-stack development.
if (time < 10) {
greeting = "Good morning";
} else if (time < 20) {
greeting = "Good day";
} else {
greeting = "Good evening";
}
let colors = ["Red", "Blue", "Green"];
console.log(colors.length); // Output: 3
let text = "javascript is fun!";
console.log(text.toUpperCase()); // Output: "JAVASCRIPT IS FUN!"
TypeScript
TypeScript
TypeScript (TS) enhances JavaScript with type safety, scalability, and better developer experience, making it essential for modern web development.
- TypeScript enhances JavaScript with static types, interfaces, and advanced tooling for scalable development.
- It includes decorators, enums, and generics for robust, maintainable code.
- With strict type checking, it ensures reliability and easier debugging. 🚀
const user = {
firstName: "Angela",
lastName: "Davis",
role: "Professor",
getFullName(): string {
return `${this.firstName} ${this.lastName}`;
}
};
console.log(user.getFullName()); // Output: Angela Davis
console.log(user.role); // Output: Professor
Dart
Dart
Dart is a modern, object-oriented language by Google for high-performance, cross-platform apps. It powers Flutter, enabling beautiful, natively compiled applications from a single codebase.Dart’s typing and JIT/AOT ensure speed and performance.
- Dart powers Flutter for mobile, web, and desktop apps from one codebase.
- Instantly apply changes without restarting, speeding up development.
- Prevents null errors for reliable, maintainable code.
void main() {
String message = "Hello, World!";
print(message);
for (int i = 1; i <= 3; i++) {
print("Dart is awesome! ($i)");
}
String name = "Alice";
int age = 25;
print("My name is $name and I am $age years old.");
}
Go
Go
Go (or Golang) is a fast, open-source, statically typed programming language developed by Google. It is designed for simplicity, efficiency, and scalability, making it ideal for modern software development.
- Go is a compiled language, meaning it runs close to the speed of C and C++.
- Uses lightweight goroutines for efficient multitasking and parallel execution.
- Compiles to native binaries for Windows, macOS, and Linux without dependencies. 🚀
package main
import "fmt"
func main() {
message := "Hello, World!"
fmt.Println(message)
for i := 1; i <= 3; i++ {
fmt.Printf("Go is awesome! (%d)\n", i)
}
}
Python
Python
Python is a free, open-source, high-level programming language known for its simplicity and versatility. It is widely used in web development, data science, AI, automation, and more.
- Vast standard library and third-party packages for web, data science, and AI.
- Clean syntax, dynamic typing, and expressive code for quick development.
- Python’s async/await enables high-performance concurrency, making it ideal for web servers, APIs, and real-time apps.
a = 200
b = 33
if b > a:
print("b is greater than a")
elif a == b:
print("a and b are equal")
else:
print("a is greater than b")
num = int(input("Enter a number: "))
if num % 2 == 0:
print("Even number")
else:
print("Odd number")
Rust
Rust
Rust is a fast, open-source, and memory-safe programming language designed for performance and reliability. It is widely used for system programming, web applications, and embedded systems.
- Rust’s ownership model ensures memory safety without a garbage collector, preventing null pointers, buffer overflows, and data races.
- Rust’s compile-time checks ensure fearless concurrency, preventing data races and enabling safe, efficient parallel code.
- High-level code with no runtime overhead for top performance.
fn main() {
// First part: Hello, World! and loop
let message = "Hello, World!";
println!("{}", message);
for i in 1..=3 {
println!("Rust is awesome! ({})", i);
}
// Second part: Immutable variables and type annotation
let name = "Alice"; // Immutable variable
let age: u32 = 25; // Explicit type annotation
println!("My name is {} and I am {} years old.", name, age);
}