-
The
tabindex
content attribute specifies whether the element is focusable, whether it can be reached using sequential focus navigation, and the relative order of the element for the purposes of sequential focus navigation -
A negative value (the exact negative value doesn't actually matter, usually
tabindex="-1"
) means that the element is not reachable via sequential keyboard navigation -
tabindex="0"
means that the element should be focusable in sequential keyboard navigation, after any positive tabindex values - A positive value means the element should be focusable in sequential keyboard navigation, with its order defined by the value of the number
-
That is,
tabindex="4"
is focused beforetabindex="5"
andtabindex="0"
, but aftertabindex="3"
-
The maximum value for
tabindex
is32767
-
You are recommended to only use
0
and-1
astabindex
values