Accessibility Wiki

Page should have exactly one main landmark

Rule landmark-one-main · Structure & semantics · impact moderate · Static + live

↩ Back to the rules index · WCAG cross-reference

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

element per page for the primary content. role="main" on the existing content wrapper works when the element cannot be renamed.

Example

✕ Fails
<main>A</main><main>B</main>
✓ Passes
<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.

Understanding 1.3.1

Standards

This rule contributes to the following standards:

WCAG A EN 301 549 Best practice

Standard Criteria
EN 301 549 9.1.3.1

References