structure

<section>

A thematic grouping of content that typically has a heading and belongs in a document outline. Use it when the content is a distinct chunk of a larger whole; use <article> instead if it stands alone.

<section><h2>Pricing</h2>...</section>

Common attributes

Attribute Purpose
aria-labelledby Links the section to its heading id
aria-label Names the section without a visible heading
id Deep-link anchor
class Styling hook

Examples

<section aria-labelledby="pricing"><h2 id="pricing">Pricing</h2>...</section>

Section with an accessible name

<section id="features"><h2>Features</h2>...</section>

Anchorable page section

<section><h2>Reviews</h2><article>...</article><article>...</article></section>

Grouping several articles under one theme

Gotcha

A

should have a heading (or aria-label) — a bare wrapper with no name should be a
. It is not a generic styling box.

Related tags

← All HTML tags · CSS selectors · HTML entities