Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML tabindex Attribute

HTML tabindex Attribute

HTML Global Attributes HTML Global Attributes

Example

Links with a specified tab key navigation order:

<a href="//www.runoob.com//" tabindex="2">

runoob.com Runoob Tutorial

a

<br/>
<a href="//www.google.com/" tabindex="1" Google a>
<br/>
<a href="//www.microsoft.com/" tabindex="3" Microsoft a>

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the tabindex attribute


Definition and Usage

The tabindex attribute specifies the order of elements when navigating with the "tab" key.


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, but it may not be useful).

In HTML 4.01, the tabindex attribute can be used on: , ,