Skip to content
easeweb
Search topics

Landmarks that are missing, misplaced or leave content out

A bookshop's pages are built from divs, or wrap the header and footer inside main, so a screen reader's landmark list is empty, or almost all main content.

WCAG 2.2
SC 1.3.1A
Required by
Section 508 · EN 301 549 (EU)
Broken <div id="content">
The accessibility problem illustrated: No vision:How do I get to the books?
01

The problem

Screen reader users can't jump to the content, the menu or the footer by landmark, and miss whatever sits outside every landmark

02

Try it

Use the landmark list to jump to the new releases

  • Broken 1: the list shows the landmarks a screen reader finds on this bookshop page. Choose an entry to jump to it. Turn on Show landmarks to see which part of the page each one covers. Can you reach the new releases from the list?

  • Broken 2: choose the first main. Where does it take you?

  • Apply a fix. Use the list again: where does main take you now?

Simulate Show landmarks

Broken Can you fix this?

Screen reader’s landmarks list:

(none)

A recreated demo. The broken version is intentionally inaccessible.

03

The fix

Wrap every area of the page in the right landmark

Before

A page built from divs

<div class="top-bar">Free delivery on orders over $30</div><div class="header">  <a href="/" class="logo">Harbour Books</a>  <div class="menu">    <a href="/fiction">Fiction</a>    <a href="/non-fiction">Non-fiction</a>    <a href="/children">Children</a>    <a href="/events">Events</a>  </div></div><div id="content">  <h1>New releases</h1>  <ul class="books">…</ul></div><div class="footer">  <a href="/contact">Contact</a>  <a href="/returns">Returns</a></div>
What is wrong2 points
  • A screen reader can't jump to any area of the page. The strip, the header, the menu, the content and the footer are all div elements, so the page has no landmarks.
  • The landmark list is empty, and everything on the page sits outside one.
After

Header, nav, main and footer elements

<div class="layout">  <header>    <div class="top-bar">Free delivery on orders over $30</div>    <a href="/" class="logo">Harbour Books</a>    <nav>      <a href="/fiction">Fiction</a>      <a href="/non-fiction">Non-fiction</a>      <a href="/children">Children</a>      <a href="/events">Events</a>    </nav>  </header>  <main id="content">    <h1>New releases</h1>    <ul class="books">…</ul>  </main>  <footer>    <a href="/contact">Contact</a>    <a href="/returns">Returns</a>  </footer></div>
How it is fixed4 steps
  1. Make the layout's wrapper a div, which is allowed around main, so the header, the content and the footer sit side by side in it.
  2. Use header, nav and footer for the top, the menu and the bottom.
  3. Keep one main, for the content.
  4. Move the delivery strip inside the header, where it is part of the banner.

The landmark list now reads "banner", "navigation", "main", "content information", in the order the page shows them, and nothing sits outside a landmark. This fixes both Befores and passes 1.3.1. Of the reasons below for keeping the divs, the layout works with the elements too, on the outer div, and a theme's styles can select header and footer in place of div.header and div.footer.

Why this fix: Use native HTML first

Easily confused
04

Verify the fix

4 checks, no mouse.

Test with: Screen reader

0 of 4 checked

Record the OS, browser and assistive-technology versions, the build, the date, and the actual result of each step. Repeat whenever the layout or a third-party widget changes.

Limits

This is a starting pattern, not a guarantee for every application. Paths, class names and the … in the lists are placeholders. Screen readers word the landmark list differently ("content info" or "content information", with "landmark" or "region" after it, or neither), so listen for the areas rather than the exact phrasing. Landmarks give screen reader users a way past the header, and WCAG 2.4.1 accepts them as one, but sighted keyboard users have no landmark keys, so the page should still have a skip link past repeated navigation for them. This guide covers whether the page has the right landmarks in the right places. It doesn't cover naming repeated landmarks, for which see navigation landmarks that all sound the same, or the headings inside them, for which see headings that don't match the page's sections. Marking the search and the related content around the main content, which 1.3.6 (AAA) asks for, is in search boxes and related items left out of the landmark list. Test the complete journey with your target assistive technology.

This is a recreated teaching example, not a finding about a named client. The code is a starting pattern: test it in your own product. No completed assistive-technology test is claimed here.

EaseWeb service

Fixed it? Keep it from coming back.

I turn guides like this one into rules your coding agents follow and checks your CI runs. Then I retest by hand with a keyboard and screen readers, periodically.

See the service