A skip link that works

How the scan tests a skip to content link with the Tab and Enter keys, when it passes or fails, and why having no skip link is only a note.

What AuditX checks

The scan opens the page you scanned in a browser at 1440 by 900 pixels, clears any focus, and presses Tab once. It only tests a skip link when that very first stop is a link whose address starts with # (and is longer than just #) and whose label or aria-label contains the word skip. If the first stop is anything else, or nothing gets focus, the result is an info note that there was nothing to test. This is not a fail, because the Web Content Accessibility Guidelines allow other ways to bypass repeated blocks, such as headings and landmarks, and the scan does not test those. When a skip link is found, the scan presses Enter and reads where focus went. If the page has no main element and no role="main", the result is an info note that the scan cannot confirm the destination. If focus is inside main, or on the element the link points to, the check passes. If focus stays on the page body, the scan presses Tab once more, and the check passes when that second press lands inside main or on the target. Otherwise the check fails, and the message says whether focus fell back to the body or went to another element. If the page could not be measured, or focus could not be read after Enter, the result is an info note marked as not measured. The check reads what Chrome did with focus, not what a screen reader announces. It does not test pages other than the one you scanned. A fail lowers the accessibility score.

Why it matters

The W3C explains that the goal of the Bypass Blocks requirement (WCAG 2.4.1, level A) is that people who rely on a keyboard can move around pages efficiently, without tabbing through the same menu on every page.

A skip link is one of the techniques the W3C lists for this requirement. This scan therefore tests where keyboard focus goes, not only whether the page scrolls.

How to fix it

  1. Make a skip link the very first focusable element in the page, before the logo and the menu, with a label such as Skip to main content.
  2. Point it at the main content with a matching id, for example href="#main" and a main element with id="main".
  3. Give the target tabindex="-1" so focus really moves there when the link is used.
  4. Test it yourself: load the page, press Tab once, press Enter, and press Tab again. You should land on the first item in the main content.
<a class="skip-link" href="#main">Skip to main content</a>
...
<main id="main" tabindex="-1">...</main>

Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.

Scan my site

Sources

Related checks

Last reviewed 2026-11-13.