Rule

Section headings

Sections of written content should begin with a heading (AAA)

Rule
section-heading
WCAG 2.2
2.4.10 Section Headings (opens in a new tab) (Level AAA)
Severity
Moderate

What it checks

Looks at each <section> element, which the markup declares to be a section. One that holds written content, at least 200 characters of text or two paragraphs, and has no heading of its own is a candidate. A heading anywhere inside it counts, unless it belongs to a nested section or article, and so does a heading straight before it, such as an article title followed by a section holding the body.

Sections named by aria-label or aria-labelledby, sections given another role, short sections of interface, and the untitled entries of a feed of three or more articles are left alone.

When a person decides

A candidate is sent for review. Whether a section is part of the writing, or only a wrapper for layout, is a reader's call.

Example

Sent to review

<section>
  <p>The garden opens at ten on weekdays and at nine at weekends.</p>
  <p>Guided walks leave from the main gate at eleven and at two.</p>
</section>

Passes

<section>
  <h2>Visiting the garden</h2>
  <p>The garden opens at ten on weekdays and at nine at weekends.</p>
  <p>Guided walks leave from the main gate at eleven and at two.</p>
</section>

The engine is tested against both examples.

How to fix it

Start the section with a heading that names its topic, one level below its parent heading. If the section has a visible title elsewhere, point aria-labelledby at it.

Check your own pages

This rule runs in every pour audit: the browser extension, the bookmarklet, the command line and the editor. Get pour, free.