← Back to the lab

Tab Order

A free accessibility game: tap the buttons, links and fields of five screens in the order the Tab key should visit them, then see the right order and why.

What it does

  • Five realistic screens: sign-in, header, checkout, product grid, settings
  • Tap to number the focus order, tap again to undo
  • Your order next to the right one, with the rule behind it
  • Works with a keyboard and a screen reader too

FAQ

What does WCAG 2.4.3 Focus Order require?

When someone moves through a page with the keyboard, focus has to go in an order that preserves meaning and operability. On most screens that is the visual reading order.

Should I use tabindex to fix the order?

Avoid positive tabindex values. Put elements in the right order in the HTML, use tabindex="0" only to make a custom control focusable and tabindex="-1" for elements you focus with script.

Does CSS order or flex-direction change focus order?

No. CSS can change what people see, but focus follows the HTML order, so a visually reordered layout sends keyboard users jumping around.

📖 Keyboard focus order: designing the Tab sequence (WCAG 2.4.3)

More free tools