HTML / XML / JS, low-level validity (cross-cutting)MediumVerified

Duplicate id attributes

What it is

An id is meant to be unique per page. Duplicates break CSS, JavaScript and accessibility references that depend on the id being singular. Repeated ids. Breaks in-page anchors and ARIA references (a11y/agents). Make ids unique. Low-medium; a11y/agents. Direct (WCAG/ARIA parsing).

Why does duplicate id attributes matter for AI search?

Breaks in-page anchors and ARIA references (a11y/agents).

How do you fix it?

Make ids unique.

How do you find it on your site?

  1. Validate the page and look for duplicate id attributes.
  2. Find where the duplicates are generated.
  3. Make each id unique.
  4. Re-validate and test the dependent behaviour.

Which ranking and citation factors does it touch?

Duplicate ids break scripting, styling and accessibility links. Unique ids keep those references reliable.

What is the impact?

Low-medium; a11y/agents. Direct (WCAG/ARIA parsing).

What is the evidence?

Unique ids are required for valid ARIA/anchors. W3C, Web Content Accessibility Guidelines (WCAG) 2.2; W3C, WAI-ARIA Authoring Practices

Frequently asked questions about duplicate id attributes

What does "Duplicate id attributes" mean?

Repeated ids.

How do you fix duplicate id attributes?

Make ids unique.