Skip to main content
Raasta
ModerateBest practicelandmark-one-main

Page has no main landmark

Without a <main> element, screen reader users can’t jump straight to the content past the header and menu. Wrap the page’s main content in a single <main>.

Who it hurts

Screen reader users and keyboard users who use “skip to content”.

Page builders often wrap everything in <div>s.

How to fix it

Pick your stack. Review every change before you ship it.

Before

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

After

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

Check it by hand too

Use your screen reader’s landmarks list: there should be one main, plus header, navigation and footer.

Automated checks find a large share of accessibility problems, but not all of them. Passing this check does not on its own make a page compliant.