Skip to main content
Raasta
SeriousWCAG 2.4.1 · Level Abypass

No way to skip repeated content

Without a skip link, headings or landmarks, keyboard users have to tab through the whole header and menu on every page before reaching the content. Add a “Skip to content” link as the first focusable element, pointing at your <main>.

Who it hurts

Keyboard users, switch users and screen reader users, who would otherwise go through every menu link on every page.

Large mega-menus can mean dozens of key presses before the first product. A skip link turns that into one.

How to fix it

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

Before

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

After

<body>
  <a class="skip-link" href="#content">Skip to content</a>
  <header>…</header>
  <main id="content" tabindex="-1">…</main>

Hide the link visually until it receives focus; never hide it with display: none.

Check it by hand too

Load the page and press Tab once. A “Skip to content” link should appear, and pressing Enter should move focus past the menu to the main content.

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.

WCAG reference