HTML5 Semantic & Markup Elements
The new elements that describe meaning, and the complete markup reference.
HTML5 Semantic Elements
Semantic elements describe meaning to both the browser and the developer.
| Element | Meaning |
|---|---|
<header> | Introductory content, logos, navigation |
<nav> | Primary navigation links |
<main> | Dominant content of the document |
<article> | Self-contained, independent content |
<section> | Thematic grouping of content |
<aside> | Tangentially related content (sidebars) |
<footer> | Footer for the nearest section or the document |
<figure> / <figcaption> | Self-contained illustration or media, with a caption |
<time> | Machine-readable date or time (ISO 8601) |
<mark> | Highlighted / search-relevant text |
<details> / <summary> | Disclosure widget with a visible label |
Markup Elements Reference
| Element | Purpose |
|---|---|
<figure> | Independent, self-contained content (image, code, diagram) with optional caption |
<progress> | Task completion indicator (loading, processing) |
<meter> | Scalar measurement within a known range (disk space, score) |
<details> / <summary> | Disclosure widget hidden until toggled; summary is the visible label |
<aside> | Content related but aside from the main content (sidebars, pull quotes) |
<figcaption> | Caption or legend for the parent <figure> |
<time> | Machine-readable date/time using ISO 8601 |
New Elements at a Glance
<figure>, <figcaption>, <svg>, <footer>, <progress>, <header>, <section>, <video>, <hgroup>, <details>.
Activity — complete the code
Complete the code correctly to mark this lesson as complete automatically.
Complete the semantic markup elements.
<figure><img src="chart.png" alt="Sales chart"><>Sales chart</figcaption></figure><><summary>Click to expand</summary><p>Hidden content.</p></details><progress value="70" ="100"></progress>