No element has a [tabindex] value greater than 0

The page uses natural keyboard tab order without manual overrides.

On this page

Impact

ScanGov impact ratings

About

A value greater than 0 implies an explicit navigation ordering. Although technically valid, this often creates frustrating experiences for users who rely on assistive technologies.

Risks

Keyboard users cannot efficiently navigate your site.

Why it's important

Allows keyboard-only users and screen reader users to efficiently move through and interact with page content.

User stories

As a keyboard-only user, I want to efficiently navigate through page content without getting stuck or lost.

Code

Failing pattern:

<!-- Fail: positive tabindex values create unpredictable tab order -->
<button tabindex="3">First action</button>
<button tabindex="1">Second action</button>

Passing pattern:

<!-- Pass: rely on DOM order; tabindex="0" to include non-interactive elements -->
<button>First action</button>
<button>Second action</button>

Error

ScanGov messaging when a site fails a standard:

No element has a [tabindex] value greater than 0

Guidance

Indicators

On this page