ClickStart logoHTML5 to the point

Setting the tab index

In HTML5, you can set the tabindex attribute for any element.

The tabindex starts at 1.

Code

<p tabindex="2">second</p>

<p>third:</p>
<input name="third" type="text" tabindex="3">

<p>first:</p>
<input name="first" type="text" tabindex="1">

Example

second

third:

first: