HTML tabindexAttribute
Examples
A link with a specified tab key navigation order:
<a href="//www.example.com//" tabindex="2">example.com Example</a><br />
<a href="//www.google.com/" tabindex="1">Google</a><br />
<a href="//www.microsoft.com/" tabindex="3">Microsoft</a>
Try it Yourself »
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the tabindex attribute.
Definition and Usage
The tabindex attribute specifies the order of elements when using the 'tab' key for navigation.
Differences Between HTML 4.01 and HTML5
In HTML5, the tabindex attribute can be used on any HTML element (it will validate any HTML element; however, it may not necessarily be useful).
In HTML 4.01, the tabindex attribute can be used on: <a>, <area>, <button>, <input>, <object>, <select>, and <textarea>.
Syntax
<element tabindex="number">
Attribute Values
| Value | Description |
|---|---|
| number | Specifies the tab order of the element (1 is the first). |
HTML Global Attributes Other Extensions