Document should not have more than one main landmark

Accessibility isn’t only about avoiding violations — it’s about ensuring your product can be used confidently by everyone. This guide explains the principle of this rule, shows what goes wrong in real-world code, and provides a verified fix that meets WCAG and the European Accessibility Act (EAA).

Why this matters and how to fix it

Why this matters

There must only be one <main> landmark per page so assistive tech can jump directly to the primary content.

How to fix this issue

Remove extra <main> elements or change their roles to <section> or <article> without role='main'.

Automated detection · Manual review recommended

Developer guidance

Verify with NVDA or VoiceOver: pressing 'D' (landmark) should only stop once at 'main'.


Code examples

Incorrect Implementation

<main>Content A</main>
<main>Content B</main>

Correct Implementation

<main>Primary content</main>
<article>Related content</article>
eu icon getwcag

Trusted by organizations across Europe working toward WCAG and EAA conformance