← Cheat Sheets
HTML Semantic Elements
Structure pages so browsers and assistive tools understand them.
# HTML Semantic Elements
Structure pages so browsers and assistive tools understand them.
| Element | Use |
|---|---|
| `header` | Intro or navigation area of a page or section |
| `nav` | Major navigation links |
| `main` | The primary content (one per page) |
| `section` | A themed group of content with a heading |
| `article` | Self-contained content (post, card) |
| `aside` | Related, tangential content |
| `footer` | Footer of a page or section |
| `figure` / `figcaption` | Media with a caption |
| `time` | Dates and times (`datetime="2025-01-31"`) |
| `address` | Contact information |
Use one `h1` per page and keep heading levels in order. Prefer native elements over `div` with ARIA.