[accesskey] values are unique

Each access key shortcut is unique so keyboard navigation works correctly.

On this page

Impact

ScanGov impact ratings

About

Access keys let users quickly focus a part of the page. For proper navigation, each access key must be unique.

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: duplicate access key -->
<a href="/search" accesskey="s">Search</a>
<a href="/sitemap" accesskey="s">Sitemap</a>

Passing pattern:

<!-- Pass: unique access keys -->
<a href="/search" accesskey="s">Search</a>
<a href="/sitemap" accesskey="m">Sitemap</a>

Error

ScanGov messaging when a site fails a standard:

Failed: [accesskey] values are unique

Guidance

Indicators

On this page