Accessibility · IDs

Duplicate ID used by ARIA or labels

Two form fields on this page share the ID email, and a label points at that ID, so the label may be attached to the wrong field.

How this page is built

The two fields below both have id="email". The first label points at that ID with for.

Why it matters

Labels and ARIA attributes such as aria-labelledby find their target by ID. When an ID is used twice, browsers pick the first match, so a label or description can attach to the wrong element. Screen reader users then hear the wrong name for a field.

Accessibility problems matter for search too. Search engines read the same code that screen readers read. Many crawl tools now run accessibility checks next to their SEO checks. A page that works for everyone is easier to use, and people stay on it for longer.

How to check it

Run an automated checker such as axe DevTools, Lighthouse or WAVE, or a crawler with accessibility checks, on this page. axe reports this under the rule duplicate-id-aria.

How to fix it

Make every ID on the page unique, and check that each for, aria-labelledby and aria-describedby points at the element you mean.

Back to all tests