HTML tabindex Global Attribute

Description

The global attribute tabindex defines the tab order of an element (using the Tab button for navigation).

Syntax

<element tabindex="number">

Values

  • numberThe number determines the tab order of the element (the order starts with 1).

Example

<p>Using the <kbd>Tab</kbd> button, select the required link:</p> 
<a href="#" tabindex="3">Link # 1</a> <br> 
<a href="#" tabindex="2">Link # 2</a> <br> 
<a href="#" tabindex="5">Link # 3</a> <br> 
<a href="#" tabindex="1">Link # 4</a> <br> 
<a href="#" tabindex="4">Link # 5</a> 

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
YesYesYesYesYesYes
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
YesYesYesYesYesYes