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 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
- Run the checker: the report outlines the skip link and shows its
href. - 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.
- In DevTools, copy the part after
#in the link’shrefand search the Elements panel forid="that-name".
How to fix it
- Decide where the skip link should land: normally the
<main>element. - Give that element the id the link uses, or change the link’s
hrefto match the existing id. Ids are case-sensitive. - 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. - 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
- Hiding the skip link with
display: nonemakes it unreachable by keyboard. Move it off screen and bring it back on:focusinstead. - In single-page apps the router may treat
#mainas a route. Make sure the skip link still moves focus there.
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
- The page does not contain a heading, skip link, or landmark region
- Document does not have a main landmark
- All page content should be contained by landmarks
More detail
- Deque University’s reference for skip-link (the makers of axe-core, the engine our scanner uses)
- All fix guides