Skip to content

Rule · Accessibility

Page has no <main> landmark

a11y/landmark-one-mainwarnvoid a11yupdated

Why it matters

Landmarks let keyboard and screen-reader users jump straight to the content.

How to fix it

Wrap the primary content in a single <main> element.

Example

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

References

void a11y reports 48 rules in this category. WCAG 2.2 AA through axe-core, plus checks axe can't do alone: visible keyboard focus, 24/44px target size on mobile, 320px reflow and disabled zoom.