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.
In more detail
Ask whether the content could be shared or syndicated independently; if yes, use article. It should normally contain its own heading.
Related terms
- section element — The HTML element for a thematic group of content within a page or article, which should always have a heading.
- semantic HTML — Using HTML elements for their meaning, such as <button> for actions and <nav> for navigation, rather than generic <div>s.
- 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.
Taught in
- Semantic HTML Elements: Landmarks And Structure — Frontend Architecture & Web Platform
- Modern Selectors: :has(), :is(), :where() And Nesting Standards — Frontend Architecture & Web Platform