1. Semantic HTML5 Elements & Accessible Document Architecture
Lesson 1 of 6
Saved Locally (Guest)
Progress
0%
Semantic HTML5 Elements & Accessible Document Architecture
Structure web documents cleanly using <header>, <nav>, <main>, <article>, <section>, <aside>, and <footer> tags.
Learning Objectives & Semantic Web Markup
### Learning Objectives
- Differentiate between generic container tags (`<div>`, `<span>`) and semantic HTML5 structural elements.
- Construct accessible HTML document outlines for screen readers and web search engines (SEO).
- Implement ARIA attributes (`aria-label`, `role`) to enhance web accessibility (a11y).
- Create accessible form controls with explicit `<label for="...">` binding.
---
### Why Semantic HTML Matters
Prior to HTML5, developers relied almost exclusively on unsemantic `<div id="header">` and `<div class="nav">` elements. Semantic HTML tags clearly describe their meaning to both the browser and developer, providing critical structural context for screen readers and search crawler indexing.
HTML5 Structural Tag Reference Matrix
### HTML5 Landmark Elements
| Element | Purpose | Accessibility Role |
| :--- | :--- | :--- |
| `<header>` | Page banner or section intro containing branding/nav | `banner` |
| `<nav>` | Major navigational link group | `navigation` |
| `<main>` | Central unique document content (only ONE per page) | `main` |
| `<article>` | Self-contained, independently distributable content unit | `article` |
| `<section>` | Standalone thematic grouping of content with heading | `region` |
| `<aside>` | Content indirectly related to surrounding content | `complementary` |
| `<footer>` | Copyright, author info, or footer links | `contentinfo` |
💻 Ready to test your knowledge with code?
Solve the hands-on coding exercise in the interactive code editor.