HTML stands for HyperText Markup Language. It's the standard language for creating web pages.
HTML elements are building blocks of HTML pages.
Example of a paragraph:
<p>Hello World!</p>
- Headings
- Paragraphs
- Links
- Images
- Lists
CSS stands for Cascading Style Sheets. It styles HTML elements.
Example of CSS syntax:
p { color: blue; font-size: 16px; }
- Color and fonts
- Box model
- Flexbox layouts
- Grid layouts
- Transitions and animations
JavaScript allows dynamic content and interaction on web pages.
console.log('Hello World');
- Variables
- Functions
- Events
- DOM manipulation
- APIs
The DOM represents HTML in memory and can be manipulated using JavaScript.
document.getElementById('myId');
- getElementById()
- querySelector()
- addEventListener()
- innerHTML
- classList manipulation
APIs allow communication between applications. Fetch API retrieves data from servers.
fetch('https://api.example.com/data')
.then(response => response.json())
.then(data => console.log(data));
- GET requests
- POST requests
- JSON parsing
- Async/Await
- Error handling