Skip links are not focusable

How to fix the skip-link accessibility rule. Keyboard. A best practice, not a WCAG requirement.

The message you saw

Lighthouse and PageSpeed Insights
Skip links are not focusable.
axe-core wording
The skip-link target should exist and be focusable
axe-core, axe DevTools and this checker
The skip-link target should exist and be focusable (rule skip-link)

Lighthouse runs axe-core inside it, so both are the same check, and the fix below works whichever tool showed you the message.

What it means

A skip link is a link at the top of the page, usually hidden until you press Tab, that jumps past the menu to the content (<a href="#main">Skip to main content</a>). Despite Lighthouse’s wording, the check is about where the link goes: it fails when the id after the # doesn’t match any element on the page.

axe only checks same-page links that are positioned off screen (the usual way skip links are hidden until focused). If the target exists but is hidden from screen readers, axe can’t decide and asks a person to check.

Typical causes: the template’s skip link says #content but the content area’s id is main, the id was removed in a redesign, or the target only appears after JavaScript runs.

Who is affected

A skip link points at an id that doesn't exist on the page, so pressing it does nothing and keyboard users are stuck going through the menu.

Keyboard users press the skip link expecting to land on the content, and nothing happens: focus stays at the top, and they still have to Tab through the whole menu. Screen-reader users hear a link that promises a shortcut and doesn’t deliver.

This is a best practice in axe-core. A broken skip link can mean the page has no working way to skip the menu, which WCAG 2.4.1 Bypass Blocks requires (headings or landmarks can also satisfy it).

How to find it

  1. Run the checker: the report outlines the skip link and shows its href.
  2. Load the page, press Tab once, then Enter on the skip link. Press Tab again: if you land on the first menu link instead of something in the content, the skip link is broken.
  3. In DevTools, copy the part after # in the link’s href and search the Elements panel for id="that-name".

How to fix it

  1. Decide where the skip link should land: normally the <main> element.
  2. Give that element the id the link uses, or change the link’s href to match the existing id. Ids are case-sensitive.
  3. Add tabindex="-1" to the target if it isn’t focusable itself (a <main> isn’t). Current browsers continue Tabbing from the target anyway, but this makes sure focus really moves there in older browsers and some screen readers.
  4. Test with the keyboard: Tab, Enter, then Tab again should reach the first link inside the content.

Example

Before

<a class="skip" href="#content">Skip to content</a>
…
<main id="main-content">…</main>

After

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

Common mistakes

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

More detail