Home > Web Front-end > HTML Tutorial > html attribute tabindex that specifies the order of tab key control of elements (when used for navigation)

html attribute tabindex that specifies the order of tab key control of elements (when used for navigation)

黄舟
Release: 2017-11-03 13:46:38
Original
3162 people have browsed it

Example

Links with specified tab order:

<a href="http://www.w3school.com.cn/" tabindex="2">W3School</a>
<a href="http://www.google.com/" tabindex="1">Google</a>
<a href="http://www.microsoft.com/" tabindex="3">Microsoft</a>
Copy after login

Browser support

Almost all browsers have tabindex attribute, except Safari.

Definition and Usage

The tabindex attribute specifies the tab key control order of elements (when the tab key is used for navigation).

Tips and Notes

Note: The following elements support the tabindex attribute: , ,