THE WORLD'S LARGEST WEB DEVELOPER SITE

HTML tabindex Attribute


Definition and Usage

The tabindex attribute specifies the tab order of an element (when the "tab" button is used for navigating).


Applies to

The tabindex attribute is part of the Global Attributes, and can be used on any HTML element.

Element Attribute
All HTML elements tabindex

Example

Links with a specified tab order:

<a href="https://www.w3schools.com/" tabindex="2">W3Schools</a>
<a href="http://www.google.com/" tabindex="1">Google</a>
<a href="http://www.microsoft.com/" tabindex="3">Microsoft</a>
Try it Yourself »

Browser Support

Attribute
tabindex Yes Yes Yes Yes Yes