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

Photo of Researcher
Yotam Flohr
Researcher
Blind Hearing
WCAG 2.1 Level A

Written and researched for humans by humans

Photo of Researcher
Yotam Flohr
Researcher
Photo of Expert
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