section element
The HTML element for a thematic group of content within a page or article, which should always have a heading.
In more detail
Use section like a chapter of a document; use article for content that stands alone. In the DOM, a section element's tagName reads SECTION.
Related terms
- article element — The HTML element for a self-contained piece of content that would still make sense on its own, such as a blog post, product card or comment.
- heading hierarchy — The outline formed by headings h1 to h6, which should go down one level at a time so the structure of the page is clear.
- semantic HTML — Using HTML elements for their meaning, such as <button> for actions and <nav> for navigation, rather than generic <div>s.
Taught in
- HTML Parsing, Tokenization And The Document Object Model (DOM) — Frontend Architecture & Web Platform
- Semantic HTML Elements: Landmarks And Structure — Frontend Architecture & Web Platform