Document has a main landmark

The page has exactly one main content area so screen readers can navigate to it.

On this page

Impact

ScanGov impact ratings

About

One main landmark helps screen reader users navigate a web page.

Risks

Screen reader users cannot skip directly to main content.

Why it's important

Improves the experience for assistive technology users by ensuring content structure is clear and consistent.

User stories

As an assistive technology user, I want content to be properly structured so that I can navigate and understand the page.

Code

Failing pattern:

<!-- Fail: no main landmark -->
<div id="content">...</div>

Passing pattern:

<!-- Pass: one main element -->
<main id="main-content">
  <!-- page content -->
</main>

Error

ScanGov messaging when a site fails a standard:

Failed: Document has a main landmark

Guidance

Indicators

On this page