Accessibility · Keyboard and focus

Positive tabindex

A link on this page has tabindex="1", which pulls it ahead of everything else in the keyboard order and makes the page's focus order confusing.

How this page is built

The link below has tabindex="1". Press Tab after the page loads and focus goes straight to it, skipping the skip link, the site header and the content above it.

Further down the page is a link that jumps the queue.

Why it matters

Positive tabindex values create a separate focus order that runs before the normal one. Keyboard users jump to unexpected places and then back again, which is disorienting and breaks the logical order WCAG asks for.

Accessibility problems matter for search too. Search engines read the same code that screen readers read. Many crawl tools now run accessibility checks next to their SEO checks. A page that works for everyone is easier to use, and people stay on it for longer.

How to check it

Run an automated checker such as axe DevTools, Lighthouse or WAVE, or a crawler with accessibility checks, on this page. axe reports this under the rule tabindex.

How to fix it

Remove positive tabindex values. Use tabindex="0" or -1 only when needed, and fix the source order if elements are in the wrong place.

Back to all tests