The maximum value for tabIndex should not exceed 32767 per W3C section 17.11.1
If not specified default value is -1
The tabindex global attribute is an integer indicating if the element can take input focus (is focusable), if it should participate to sequential keyboard navigation, and if so, at what position. It can take several values:
0
means that the element should be focusable and reachable via sequential keyboard navigation, but its relative order is defined by the platform convention;An element with a 0
value, an invalid value, or no tabindex value should be placed after elements with a positive tabindex in the sequential keyboard navigation order.
Specification | Status | Comment |
---|---|---|
WHATWG HTML Living Standard The definition of 'tabindex' in that specification. | Living Standard | No change from latest snapshot, HTML5.1 |
HTML5.1 The definition of 'tabindex' in that specification. | Recommendation | Snapshot of WHATWG HTML Living Standard, no change from HTML5 |
HTML5 The definition of 'tabindex' in that specification. | Recommendation | Snapshot of WHATWG HTML Living Standard. From HTML 4.01 Specification, the attribute is now supported on all elements (global attributes). |
HTML 4.01 Specification The definition of 'tabindex' in that specification. | Recommendation | Only supported on <a> , <area> , <button> , <object> , <select> , and <textarea> . |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |
HTMLElement.tabIndex
that reflects this attribute.
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex