BASICS OF PROGRAMMING LANGUAGES
1. Java
- Java is an object-oriented programming language.
- Concepts include: Variables, Data Types, Loops, Conditions, Classes & Objects.
- Common uses: Backend development, desktop applications, mobile apps.
- Tools: IntelliJ IDEA, Eclipse.
Example:
public class HelloWorld {
public static void main(String[] args) {
[Link]("Hello, World!");
}
}
2. HTML
- HTML (HyperText Markup Language) is used to structure web pages.
- Key elements: headings, paragraphs, links, images, forms.
- HTML5 adds semantic tags for better structure.
Example:
<!DOCTYPE html>
<html>
<head>
<title>My Page</title>
</head>
<body>
<h1>Welcome to My Website</h1>
<p>This is a paragraph.</p>
</body>
</html>
3. CSS
- CSS (Cascading Style Sheets) is used to style HTML elements.
- Concepts: colors, fonts, layout, positioning.
- Techniques: Flexbox, Grid, Animations.
Example:
body {
background-color: #f0f0f0;
font-family: Arial, sans-serif;
}
h1 {
color: blue;
}
4. JavaScript
- JavaScript is used to make web pages interactive.
- Concepts: Variables, Functions, DOM Manipulation, Events.
- Can be used with HTML/CSS to create dynamic websites.
Example:
function greet() {
alert('Hello, Visitor!');
}
5. MySQL
- MySQL is a database management system.
- Used to store, retrieve, and manage data.
- Key commands: CREATE, SELECT, INSERT, UPDATE, DELETE.
Example:
CREATE DATABASE mydatabase;
USE mydatabase;
CREATE TABLE users (
id INT PRIMARY KEY,
name VARCHAR(50),
email VARCHAR(50)
);
INSERT INTO users (id, name, email) VALUES (1, 'aspire', 'aspire@[Link]');
SELECT * FROM users;
This guide provides a simple overview of the basic programming languages used in web and
application development. Beginners can use this as a quick reference.