tabindex

The HTML attribute that controls whether an element can be focused and whether it is in the tab order.

In more detail

tabindex="0" puts an element in the normal tab order; tabindex="-1" makes it focusable by script but skipped by Tab. Positive values force an order and should be avoided. Roving tabindex swaps 0 and -1 between items as the user moves.

Example

In JSX it is written tabIndex.

Related terms

Taught in

References