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 |
<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>
This form cannot submit because of a sample.