Introduction
HTML provides semantic elements that convey meaning to browsers and assistive tech.
Why semantics matter
Semantics improve accessibility, SEO, and maintainability.
- Accessibility
- Screen readers rely on landmarks.
- SEO
- Search engines prefer structured content.
Element examples
Text and code
Inline elements: highlight, const x = 1, Ctrl+ C, count, OK, deprecated, fine print.
function greet(name){
return `Hello ${name}`;
}
Lists
- Unordered item
- Nested list
- First
- Second
Table
| Key | Value |
|---|---|
| Language | HTML |
| Version | 5 |
| End of table | |
Figures & media