Introduction
HTML5 introduced a set of new elements designed to give web pages more meaningful structure and to natively support media without third-party plugins. Before HTML5, developers relied on <div id="header">, <div id="nav">, and Flash or other plugins for audio and video. HTML5 elements like <header>, <footer>, <section>, <article>, <figure>, <video>, and <audio> standardized these patterns across browsers.
Cricket analogy: Before HTML5, developers used generic divs like relying on a plain notebook to track overs; HTML5 elements like header and footer standardized this the way official scorecards standardized how every match records the same information consistently.
Syntax
<figure>
<img src="chart.png" alt="Sales growth chart for Q1">
<figcaption>Figure 1: Quarterly sales growth</figcaption>
</figure>
<video controls width="480">
<source src="demo.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<audio controls>
<source src="podcast.mp3" type="audio/mpeg">
Your browser does not support the audio tag.
</audio>Explanation
<figure> groups self-contained media (like an image, diagram, or code snippet) with an optional <figcaption> that labels it. <video> and <audio> provide native, plugin-free media playback with a controls attribute for built-in play/pause/volume UI, and can include multiple <source> children so the browser picks a supported format. Other HTML5 additions include <mark> for highlighted text, <time> for machine-readable dates, <progress> and <meter> for numeric indicators, and <details>/<summary> for native collapsible content.
Cricket analogy: figure with figcaption is like a scorecard graphic paired with its explanatory caption, video and audio with controls are like a broadcast feed with built-in playback controls, and details/summary is like a collapsible player stats panel that expands on tap without extra commentary software.
Example
<details>
<summary>Click to see shipping details</summary>
<p>Orders ship within 2-3 business days via standard mail.</p>
</details>
<p>Reading progress: <progress value="70" max="100"></progress></p>
<p>Published <time datetime="2026-07-08">July 8, 2026</time></p>Output
The <details> element renders as a collapsed disclosure widget with a triangle toggle next to the <summary> text; clicking it reveals the nested content without any JavaScript. The <progress> bar renders as a native progress indicator styled by the browser, and <time> renders as plain text visually but exposes a machine-readable datetime attribute that calendars and search engines can parse.
Cricket analogy: The details element rendering a collapsed triangle toggle is like a folded team-sheet insert that unfolds to reveal the full lineup on tap, the progress bar is like a native run-rate meter styled by the broadcaster, and time exposes match date data machines can parse for archives.
Key Takeaways
- HTML5 added structural elements (header, nav, main, article, section, footer, aside).
- <video> and <audio> provide native media playback without plugins.
- <figure>/<figcaption> semantically group media with a caption.
- <details>/<summary> create native collapsible widgets with zero JavaScript.
- <time> provides machine-readable dates via the datetime attribute.
Practice what you learned
1. Which HTML5 element provides native audio playback without third-party plugins?
2. What is the purpose of the <figcaption> element?
3. Which element creates a native collapsible disclosure widget without JavaScript?
4. What attribute on <video> displays built-in play, pause, and volume UI?
5. Which element is designed to represent a machine-readable date or time?
Was this page helpful?
You May Also Like
Semantic HTML
Learn how to use HTML elements that convey meaning about their content, improving accessibility and SEO.
Meta Tags and SEO Basics
Understand how meta tags in the <head> influence search engine ranking, social sharing, and page behavior.
Accessibility in HTML
Learn how to write HTML that works for everyone, including users of screen readers and other assistive technology.
Related Reading
Related Study Notes in Web Development
Browse all study notesWebSockets Study Notes
Web Development · 30 topics
Web DevelopmentWebAssembly Study Notes
WebAssembly · 30 topics
Web DevelopmentgRPC Study Notes
Protocol Buffers · 30 topics
Web DevelopmentSpring Boot Study Notes
Java · 30 topics
Web DevelopmentFlask Study Notes
Python · 30 topics
Web DevelopmentDjango Study Notes
Python · 30 topics