tab order

The sequence in which elements receive focus when the user presses Tab (forward) or Shift+Tab (backward).

In more detail

It follows the order of elements in the DOM unless changed with tabindex. A composite widget such as a toolbar should be a single tab stop, with arrow keys moving inside it. Automated tools cannot tell whether the order makes sense.

Example

In the browser: Elements removed from the tab order with tabindex="-1" can still receive focus from script. Keeping the DOM order logical keeps the tab order logical; the tabindex attribute can adjust it but positive values usually cause confusion.

Related terms

Taught in

References