Skip to main content
Version: v6

Element tabindex value is greater than 0

Element tabindex value is greater than 0 — rule summary
FieldValue
Rule codeElement_TabIndex_Positive
WCAG conformance levelA
WCAG success criterion2.4.3 Focus Order
Must be fixed at sourceNo

Description

We detected an explicit tabindex attribute value that is greater than 0. Interactive elements (elements that can be focused to) should be accessed in the same sequence as the visual order presented when accessed via the keyboard. If the tabindex attribute value is greater than 0, the tabbing order is likely to be in discordance with the visual order of interactive elements on the page. If explicit tabindex values are needed, they should be set to 0 (numeric value) to specify that the element should fall within regular tabindex reading order. For elements that should be left out of the natural tab order, the tabindex attribute numeric value can be set to -1 (numeric value) so that they do not receive keyboard tabbing focus.

How to fix

Ensure interactive elements are navigable in visual sequence by avoiding explicit tabindex values that go beyond 0, or by setting tabindex="0" for natural order inclusion and tabindex="-1" for exclusion from keyboard focus.