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)

Nov 03, 2017 pm 01:46 PM
html navigation

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: , ,