Semantic HTML
Author valid, well-structured HTML documents whose elements convey meaning to browsers, search engines and assistive technology.
4 objectives 6 steps about 120 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Structure a page with a correct document skeleton, metadata, a logical heading hierarchy and landmark elements (header, nav, main, footer).
- Choose the semantic element for each piece of content (links vs buttons, lists, data tables with headers, figures, dialog, details) instead of generic div and span.
- Provide text alternatives and labels: meaningful alt text, captions for media, and a programmatic label for every form control.
- Validate markup and inspect the accessibility tree in browser DevTools to confirm the intended structure is exposed.
Lesson plan
6 steps, about 120 min · 5 of 5 lessons available so far
- Anatomy of an HTML Document Concept · 15 min
- Headings, Landmarks and the Page Outline Worked example · 20 min
- Choosing Elements by Meaning, Not Looks Concept · 20 min
- Alternatives and Labels for Images, Media and Inputs Concept · 20 min
- Lab: Mark Up an Article Page and Inspect Its Accessibility Tree Lab · 30 min
- Check: Spot the Semantic Errors Knowledge check · 8 questions
Practise it
Convert a provided div-only news article page into semantic HTML that passes the W3C validator with zero errors, has one h1 and no skipped heading levels, uses landmarks, and gives every image and control an accessible name.
Build it from scratch
Practice builds that exercise this skill by re-creating a real technology.
- Build your own Web BrowserAdvanced · 30–60 h
References
Hard prerequisites
None.
Unlocks
On these roadmaps
Progress and evidence for this skill are shared across all of them.