---
id: html-semantics
title: "HTML Semantics"
category: "Frontend"
status: "draft"
verification_status: "conceptual"
canonical_id: ""
aliases: ["semantic elements", "semantic HTML", "HTML5 semantic elements", "section article", "non-semantic elements", "figure figcaption"]
duplicate_of: ""
source_trust_level: "B"
confidence_score: 0.91
created_at: 2026-06-23
updated_at: 2026-06-23
review_reason: ""
merge_history: []
tags: ["html", "web", "frontend", "w3schools", "semantic", "html5"]
raw_sources: ["https://www.w3schools.com/html/html5_semantic_elements.asp"]
applied_in: []
github_commit: ""
---
# [[HTML Semantics]]
## π― ν μ€ ν΅μ°° (One-line insight)
Semantic elements are elements with a meaning: a semantic element clearly describes its meaning to both the browser and the developer, unlike non-semantic elements such as `
` and `
` that say nothing about their content. [S1]
## π§ ν΅μ¬ κ°λ
(Core concepts)
- **Semantic = meaning** β a semantic element clearly describes its meaning to both the browser and the developer. [S1]
- **Non-semantic elements** β `` and `
` tell nothing about their content. [S1]
- **Semantic elements** β ` `, ``, ``, etc. clearly define their content. [S1]
- **Page-region elements** β ``, ``, ``, ``, ``, ``, ``, ``, ``, ``, ``, ``, `` define different parts of a web page. [S1]
- **Why semantics** β per the W3C, a semantic Web allows data to be shared and reused across applications, enterprises, and communities. [S1]
## π§© μΆμΆλ ν¨ν΄ (Extracted patterns)
- **``** β a thematic grouping of content, typically with a heading. [S1]
- **``** β independent, self-contained content that should make sense on its own. [S1]
- **`` / ``** β introductory content/nav vs. footer info; multiple of each allowed per document. [S1]
- **``** β only for major blocks of navigation links, not every link. [S1]
- **``** β content indirectly related to the surrounding content (sidebar). [S1]
- **`` + ``** β self-contained illustration plus its caption. [S1]
- **Free nesting** β `` and `` may contain each other; definitions do not dictate nesting. [S1]
## π μΈλΆ λ΄μ© (Details)
**What are semantic elements?**
Semantic elements = elements with a meaning. A semantic element clearly describes its meaning to both the browser and the developer. Non-semantic elements such as `` and `
` tell nothing about their content. Semantic elements such as ` `, ``, and `` clearly define their content. [S1]
Semantic elements that define different parts of a web page: ``, ``, ``, ``, ``, ``, ``, ``, ``, ``, ``, ``, ``. [S1]
**HTML `` element**
The `` element defines a section in a document. According to W3C documentation, a section is a thematic grouping of content, typically with a heading. Use cases include chapters, introduction, news items, and contact information. [S1]
```html
WWF
The World Wide Fund for Nature (WWF) is an international organization working on issues regarding the conservation, research and restoration of the environment, formerly named the World Wildlife Fund. WWF was founded in 1961.
WWF's Panda symbol
The Panda has become the symbol of WWF. The well-known panda logo of WWF originated from a panda named Chi Chi that was transferred from the Beijing Zoo to the London Zoo in the same year of the establishment of WWF.
```
**HTML `` element**
The `` element specifies independent, self-contained content. An article should make sense on its own, and it should be possible to distribute it independently from the rest of the web site. Use cases include forum posts, blog posts, user comments, product cards, and newspaper articles. [S1]
```html
Google Chrome
Google Chrome is a web browser developed by Google, released in 2008. Chrome is the world's most popular web browser today!
Mozilla Firefox
Mozilla Firefox is an open-source web browser developed by Mozilla. Firefox has been the second most popular web browser since January, 2018.
Microsoft Edge
Microsoft Edge is a web browser developed by Microsoft, released in 2015. Microsoft Edge replaced Internet Explorer.
```
Example with CSS styling articles: [S1]
```html
Most Popular Browsers
Google Chrome
Google Chrome is a web browser developed by Google, released in 2008. Chrome is the world's most popular web browser today!
Mozilla Firefox
Mozilla Firefox is an open-source web browser developed by Mozilla. Firefox has been the second most popular web browser since January, 2018.
Microsoft Edge
Microsoft Edge is a web browser developed by Microsoft, released in 2015. Microsoft Edge replaced Internet Explorer.
```
**Nesting `` in `` or vice versa?**
The `` element specifies independent, self-contained content. The `` element defines a section in a document. Can we use the definitions to decide how to nest those elements? No, we cannot. So, you will find HTML pages with `` elements containing `` elements, and `` elements containing `` elements. [S1]
**HTML `` element**
The `` element represents a container for introductory content or a set of navigational links. It typically contains one or more heading elements (`` β ``), a logo or icon, and authorship information. You can have several `` elements in one HTML document. However, `` cannot be placed within a `