Accessibility · IDs
Duplicate ID on the page
Two paragraphs on this page share the same id attribute value. IDs must be unique, so scripts, links and styles may pick the wrong element.
How this page is built
The two paragraphs below both have id="summary". Neither is used by a label or ARIA attribute.
This is the first paragraph with the ID summary.
This is the second paragraph with the same ID.
Why it matters
HTML requires each ID to be unique. Duplicates break in-page links, which jump to the first match, and confuse scripts and styles. Older assistive technology also relied on unique IDs. Duplicates usually come from a component or include being used twice on one page.
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. The W3C HTML validator also reports duplicate IDs as errors.
How to fix it
Give each element a unique ID, or remove IDs that are not needed. Generate IDs in components rather than hard-coding them.