Positive tabindex changes the tab order

  • WCAG 2.4.3 Focus Order, level A
  • Moderate
  • ARIA
  • Automated
  • Server pass

Why it matters

A tabindex above 0 pulls an element to the front of the tab order and creates a confusing jump around the page.

How to fix it

Use tabindex="0" or no tabindex, and put things in the DOM in the order you want them focused.

<!-- Before -->
<input tabindex="5">

<!-- After -->
<input>

Read the W3C guidance: Understanding 2.4.3 Focus Order.

Related rules

Find this on your own site. A11yMate scans every page and lists where it happens. See pricing or browse all rules.