Labels point at IDs that are used more than once

Automated check duplicate-id-aria, run with axe-core

WCAG
4.1.2 Name, Role, Value (Level A)
Severity
Serious: completable, but painful
Typical effort
Moderate, 1 to 4 hours
Category
Code quality

Who this affects

Screen reader users, and anyone relying on correctly linked form labels.

Why it matters

When an id referenced by a label or aria-labelledby appears twice, the label can attach to the wrong element, so a field is announced with another field’s name.

How to fix it

Make every id unique, especially in components rendered several times on one page, such as product cards or repeated forms.

Check your own website

The free scan tests 3 pages against WCAG 2.2 A and AA in about 30 seconds. No sign-up.

Scan my website — free

Related checks: Code quality

All checks