Website Spec
← SEO
Required

Heading hierarchy

Headings describe the sections of a page. They must form a nested outline, never be used for visual styling alone, and never skip levels.

What it is

HTML defines six heading levels, <h1> through <h6>. They are the spine of a document's outline. Screen readers expose them as a navigable list, search engines weight them when working out what a page is about, and AI agents use them to chunk content.

<h1>HSTS</h1>
<h2>What it is</h2>
<h2>Why it matters</h2>
<h3>For users on public Wi-Fi</h3>
<h2>How to implement</h2>

Why it matters

Headings are the only structural signal that is consistent across browsers, screen readers, search engines, and AI tools. Get them right and the page becomes:

WCAG 2.4.6 (Level AA) requires headings and labels to describe the topic or purpose. Skipping levels or using a heading for its visual weight is a direct failure.

How to implement

The rules are simple and rarely controversial:

For component-driven design systems, expose the heading level as a prop (<Heading level={2}>...</Heading>) so the same component can render at the right level for its context.

Common mistakes

Verification

Sources