structure

<article>

Self-contained content that could be distributed independently — a blog post, news story, forum reply, or product card. Use it when the content would make sense syndicated or on its own page.

<article><h2>Post title</h2>...</article>

Common attributes

Attribute Purpose
aria-labelledby Links article to its heading
id Anchor target
class Styling hook

Examples

<article><h2>How to bake sourdough</h2><p>...</p></article>

A single blog post

<article><h3>Great product</h3><p>5 stars — ...</p></article>

A user-submitted review card

<article><header><h2>Title</h2></header><p>Body</p><footer>By Ada</footer></article>

Article with its own header and footer

Gotcha

is not just a styling wrapper for prose — use it only when the content is independently distributable. Nested articles imply the inner one is related to the outer (like comments on a post).

Related tags

← All HTML tags · CSS selectors · HTML entities