Page should have exactly one main landmark
Rule
landmark-one-main· Structure & semantics · impact moderate · Static + live
Why it matters
The main landmark lets users skip straight to primary content. Zero mains removes that shortcut; multiple mains make "go to main" ambiguous.
How to fix
Use exactly one
Example
<main>A</main><main>B</main>
<main>A</main><aside>B</aside>
WCAG success criteria
1.3.1 Info and Relationships — Level A
Structure and relationships conveyed visually (headings, lists, tables, labels, groups) must also be available programmatically.
Standards
This rule contributes to the following standards:
WCAG A EN 301 549 Best practice
| Standard | Criteria |
|---|---|
| EN 301 549 | 9.1.3.1 |