Positive tabindex values must not change the focus order

Elements must receive focus in an order that follows the page and keeps its meaning. A tabindex above 0 pulls an element out of that order and sends keyboard focus to it first.

Readabler check

Rule IDrdb-tabindex-positive
ImpactSerious
Success criterion 2.4.3 Focus Order · A
StandardsWCAG 2.0 · WCAG 2.1 · WCAG 2.2 · Section 508 · EN 301 549
Readabler fix Fixed automatically

Example

Before
<form action="/login">
  <label for="email">Email</label>
  <input id="email" type="email" tabindex="2">
  <label for="password">Password</label>
  <input id="password" type="password" tabindex="3">
  <button tabindex="1">Log in</button>
</form>

The first Tab press lands on “Log in”, before the email and password fields.

After
<form action="/login">
  <label for="email">Email</label>
  <input id="email" type="email">
  <label for="password">Password</label>
  <input id="password" type="password">
  <button>Log in</button>
</form>

Tab moves from Email to Password to Log in, matching the layout.

Why it matters

People who use the keyboard follow the page through its focus order. When that order matches the visual and reading order, they always know what comes next. A positive tabindex breaks it: the browser visits every element with a positive value first, wherever it sits on the page, and only then the rest.

Sighted keyboard users see focus jump around the screen. People using screen magnifiers see only a small part of the page and lose focus entirely. Screen reader users who tab through a form hear fields and buttons out of context, and may submit before filling it in.

WCAG 2.4.3 Focus Order, at Level A, requires an order that preserves meaning and operation. Positive values are usually an attempt to repair an order problem, and the real fix is in the HTML.

How to fix it

Delete positive values. Most of the time the natural order is already correct:

<input id="email" type="email">

Fix the HTML order. If the natural order is wrong, move elements in the source so it matches what people see. Visual reordering with CSS order, flex-direction: row-reverse or grid placement does not change the focus order, so avoid it for interactive content.

Use 0 and -1 only. tabindex="0" adds a custom control to the Tab order where it sits in the HTML. tabindex="-1" makes an element focusable from scripts only, for example an error message you move focus to:

<div id="errors" tabindex="-1" role="alert">Enter your email address.</div>

A field must be focused first, like the search box on a search results page: focus it with a script on load, or use autofocus on that one field, instead of renumbering the page.

Check templates and plugins. Positive values often come from a theme or a form builder. Fix them at the source so every page benefits.

Checklist

  1. Remove tabindex values above 0.
  2. Put elements in the HTML in visual order.
  3. Use tabindex="0" and "-1" only.
  4. Tab through each form to confirm the order.

How the check works

The check reads the tabindex attribute of every element and reports each one whose value, read as a whole number, is greater than 0. It does not judge whether the resulting order still makes sense, so a positive value is reported even when it happens to match the layout. To confirm WCAG 2.4.3, tab through the page and compare the order with what you read on screen.

Resources

Updated October 27, 2026