Ensure Every id Attribute Value Used In ARIA and In Labels Is Unique
Blind
Hearing
WCAG 2.2 Level A
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.