IDs used in ARIA and labels must be unique
How to fix the duplicate-id-aria accessibility rule. IDs and markup.
What this rule checks
Ensure every id attribute value used in ARIA and in labels is unique
Who is affected
Two elements share an id that ARIA or a label points to, so the label or description may attach to the wrong element.
How to fix it
Make every id unique on the page.
WCAG success criteria
When this rule fails, the page fails:
- 4.1.2 Name, Role, Value (Level A, WCAG 2.0, 2.1, 2.2)
Find it on your own page
Scan a web page and the report lists every element that fails this rule, with screenshots outlining where they are, the code, and a selector you can paste into your browser’s developer tools.
More detail
- Deque University’s reference for duplicate-id-aria (the makers of axe-core, the engine our scanner uses)
- All fix guides