Can we count your visit?

Our analytics service records the pages you view, so we can see which ones are useful. It saves a random ID in your browser, and we never use it for advertising. Read our privacy policy.

tabindex

An HTML attribute that controls whether an element can receive keyboard focus, and in what order.

tabindex is an HTML attribute that controls keyboard focus. tabindex="0" adds an element to the normal tab order, which a custom control needs. tabindex="-1" lets a script move focus to an element without adding it to the tab order, which suits a heading that focus is sent to. A positive value, such as tabindex="3", forces the element ahead of everything else.

Positive values cause problems: focus jumps around the page in an order that no longer matches what people see. Native buttons, links, and form fields are focusable already and need no tabindex at all.

Get help with every step.

We can work with organizations of every size and industry, from a startup serving its first customers to a bank. We find where you stand, help your team fix what matters, and keep checking as your product changes. That work is evidence of your effort, not a legal guarantee.