Chapter 1 deck Chapter 2 deck Chapter 3 deck Chapter 4 deck Chapter 5 deck Chapter 6 deck Chapter 7 deck Chapter 8 deck Chapter 9 deck Chapter 10 deck Chapter 11 deck Chapter 12 deck Chapter 13 deck Chapter 14 deck

HTML5 Semantic & Markup Elements

5 slides · use ←/→ or Space to navigate, F for fullscreen.

Reading view

← Back to the full Chapter 4 deck

HTML5 Semantic & Markup Elements
Fullscreen for presentation · Print / PDF for a handout
1 / 5
Lesson

HTML5 Semantic & Markup Elements

The new elements that describe meaning, and the complete markup reference.

HTML5 Semantic & Markup Elements

HTML5 Semantic Elements

Semantic elements describe meaning to both the browser and the developer.

ElementMeaning
<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
HTML5 Semantic & Markup Elements

Markup Elements Reference

ElementPurpose
<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
HTML5 Semantic & Markup Elements

New Elements at a Glance

<figure>, <figcaption>, <svg>, <footer>, <progress>, <header>, <section>, <video>, <hgroup>, <details>.

HTML5 Semantic & Markup Elements

Activity — complete the code

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>