All page content should be contained by landmarks
How to fix the region accessibility rule. Keyboard. A best practice, not a WCAG requirement.
The message you saw
Lighthouse has no audit for this rule, so you’ll only see it from axe-core based tools.
What it means
Landmarks are the big areas of a page that screen readers can list and jump between: the site header (<header>), menus (<nav>), the main content (<main>), sidebars (<aside>), the footer (<footer>), plus forms and sections that have a name. This message means some visible content sits outside all of them.
Common culprits: a promotion bar above the header, a cookie notice, a “back to top” link, or a whole page built from <div>s with no landmarks at all.
axe leaves out a few things on purpose: skip links that point somewhere valid, live regions (status messages), dialogs, SVG images, iframes (they’re checked inside), and content hidden from screen readers.
Who is affected
Some content sits outside every landmark (header, nav, main, footer), so screen-reader users who move by landmarks can skip right past it.
Screen-reader users often skim a page by jumping from landmark to landmark. Anything outside a landmark is skipped by that method, so they may never find the announcement, the phone number or the notice that sits there.
This is a best practice, not a WCAG requirement. Landmarks are also one way to meet 2.4.1 Bypass Blocks and to show the page’s structure for 1.3.1.
How to find it
- Run the checker: each piece of content outside a landmark is outlined, so you can see which blocks are left out.
- In DevTools, look at the direct children of
<body>: everything visible should be inside<header>,<nav>,<main>,<aside>or<footer>.
How to fix it
- Wrap the site’s top area (logo, menu) in
<header>, the menu in<nav>, the page content in<main>, and the bottom area in<footer>. - Move stray blocks into the landmark they belong to: a promo bar into the
<header>, a “back to top” link into the<footer>. - For a block that is its own thing (a cookie notice), make it a
<section>with anaria-label, which turns it into a region landmark, or arole="dialog"if it acts like one. - Scan again until no content is left out.
Examples
A promo bar above the header
Before
<div class="promo">Free delivery this week</div>
<header>…</header>After
<header>
<p class="promo">Free delivery this week</p>
…
</header>A notice that stands alone
Before
<div class="notice">We use cookies…</div>After
<section class="notice" aria-label="Cookie notice">We use cookies…</section>Common mistakes
- A
<section>without an accessible name is not a landmark, so it doesn’t fix this. Give itaria-labeloraria-labelledby. - Don’t wrap the whole page in one
<main>including header and footer: that hides the page’s real structure. Each part should get its own landmark.
WCAG success criteria
None. This is a best practice: fixing it helps people using assistive technology, but it doesn’t affect WCAG conformance. Our scanner only reports it if you tick “Also show best-practice suggestions”.
Check your fix
Scan a web page and the report lists every element that fails this rule, with screenshots outlining where they are, the code, and a selector you can paste into your browser’s developer tools. Scan again after your change: when the rule no longer appears under the problems, the fix worked.
An automated pass means this rule found nothing wrong. It doesn’t prove the page is accessible: some of what WCAG asks for needs a person to check, and the report’s manual checklist lists those steps.
Related fix guides
- Document does not have a main landmark
- The page does not contain a heading, skip link, or landmark region
- Landmarks should have a unique role or role/label/title (i.e. accessible name) combination
More detail
- Deque University’s reference for region (the makers of axe-core, the engine our scanner uses)
- All fix guides