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:

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