sets the tab order


tabindex=""

Browser
Internet Explorer Firefox Opera7

The tabindex attribute sets the tab order of an element.

This attribute can be used in the following elements.
A, AREA, INPUT, TEXTAREA, BUTTON, SELECT, OBJECT


<a href="example.html" tabindex="1"> - </a>


Attribute Value Explanation
tabindex=" " number arbitrary number

Example

<form method="POST" action="example.cgi">

<p>Item(1) : <input type="text" name="item_a" tabindex="1"></p>
<p>Item(5) : <input type="text" name="item_b" tabindex="5"></p>
<p>Item(4) : <input type="text" name="item_c" tabindex="4"></p>
<p>Item(3) : <input type="text" name="item_d" tabindex="3"></p>

<p>
Item(2)<br>
<textarea name="item_e" cols="50" rows="5" tabindex="2"></textarea>
</p>

</form>
Output

Item(1) :

Item(5) :

Item(4) :

Item(3) :

Item(2)

This form cannot submit because of a sample.