Rule library Document semantics

Document should have one main landmark

landmark-one-mainBest practice

Ensure the document has a main landmark

Who this affects

The page has no <main> landmark, so users cannot jump straight to the main content.

How to fix it

Wrap the primary content of each page in a single <main>.

Effort Low · ~20 min per template

Before and after

Fails

<div class="content">…</div>

Passes

<main id="main">…</main>

How to check it by hand

Use a heading-outline extension, or the screen reader's heading list. The outline should read like a table of contents. Levels that jump, or headings used for visual size, show up immediately here.

Automated testing settles roughly a third of the WCAG success criteria. This rule is one an automated tool detects reliably — but a clean automated result is not proof of conformance.

Reference

Deque's technical write-up for this rule: landmark-one-main

See whether your site trips this rule

Paste a URL. We open it in a real browser, dismiss the cookie wall and run the full EN 301 549 rule set. No account, no card.

Run a free scan All rules