100% Free Forever
AI-Powered Learning
Industry Expert Content
Certificates & Badges
Learn At Your Own Pace
HTML & CSS

HTML5 New Elements

Explore the structural and media elements introduced in HTML5 and how they replace older markup patterns.

HTML Semantics & AccessibilityBeginner8 min readJul 8, 2026
Analogies

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

html
<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

html
<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

Was this page helpful?

Topics covered

#HTMLCSS#HTMLCSSStudyNotes#WebDevelopment#HTML5NewElements#HTML5#New#Elements#Syntax#StudyNotes#SkillVeris