← All WCAG & EAA Fix Guides

moderate EN 301 549 § 9.2.4.1

landmark-one-main: Page must contain exactly one <main> landmark and a skip link

Wrap the primary content in a single <main id="main"> landmark and provide a keyboard-reachable 'Skip to main content' link at the top of <body>.

Why this matters for EAA & ADA compliance

Without a skip link and <main> landmark, keyboard-only shoppers must Tab through 40+ mega-menu navigation links on every single page load.

Mapped standards: 1.3.1 Info and Relationships (Level A), 2.4.1 Bypass Blocks (Level A) • EN 301 549 § 9.2.4.1

Standard HTML Fix

Before (fails landmark-one-main):
<div class="page-wrapper">...</div>
After (accessible source markup):
<a href="#main" class="skip-link">Skip to main content</a>
<main id="main">...</main>

Shopify Liquid Fix

Before:
<div id="MainContent">{{ content_for_layout }}</div>
After:
<a class="skip-to-content-link visually-hidden" href="#MainContent">Skip to content</a>
<main id="MainContent" role="main">{{ content_for_layout }}</main>

React / Next.js Fix

Before:
<div className="content">{children}</div>
After:
<a href="#main-content" className="sr-only focus:not-sr-only">Skip to main content</a>
<main id="main-content">{children}</main>

Check your live site for landmark-one-main right now

Public HTTPS URL (e.g. https://yourstore.com). Runs headless Chromium + axe-core + overlay detection.
Error: Enter a valid public website URL starting with https://