Core HTML5 Semantic Elements
Building on the concept of Semantic HTML, the tags introduced in HTML5 are designed to give structure to the layout of a document, replacing generic <div> elements and providing immediate meaning for browsers and assistive technologies.
This guide explores the most crucial semantic tags used to structure a modern web page.
Common Semantic HTML5 Elements
Semantic elements in HTML5 are those that clearly describe their meaning in a human- and machine-readable way. Elements such as <article>, <aside>, <details>, <figcaption>, <figure>, <footer>, <header>, <main>, <mark>, <nav>, <section>, <summary>, and <time> not only help in structuring the content but also define its purpose on the web page.
| Element | Description |
|---|---|
<article> | Defines independent, self-contained content |
<aside> | Represents content aside from the content it is placed in |
<details> | Defines additional details that the user can view or hide |
<figcaption> | Represents a caption or legend for a <figure> element |
<figure> | Represents self-contained content, such as images, diagrams, or code snippets |
<footer> | Defines a footer for a document or a section |
<header> | Defines a header for a document or a section |
<main> | Specifies the main content of a document |
<mark> | Highlights text within the content |
<nav> | Defines navigation links |
<section> | Represents a generic section of a document or application |
<summary> | Defines a visible heading for a <details> element |
<time> | Represents a specific time or date |