Ensure Every id Attribute Value Used In ARIA and In Labels Is Unique

Yotam Flohr
Researcher
Blind Hearing
WCAG 2.1 Level A

Written and researched for humans by humans

Yotam Flohr
Researcher
Ritvik Shrivastava
Expertly reviewed by
Comments: 0
Your entire domain
Get detailed instructions on how to resolve every accessibility issue on your website

The value assigned to an id attribute used in ARIA or in form labels must not be used more than once in the same document, ensuring elements are differentiated from each other. 

Why It Matters

Duplicate IDs can break the accessibility of labels.

Unique IDs differentiate elements and prevent invalid markup, ensuring assistive technologies only reference the first one accurately.

Fixing the Issue

Rename any duplicate ID values to ensure they are unique.

Test Cases

For more examples, visit W3C’s GitHub’s ATC Rules library