Find us at BrightonSEO 25/26 April - STAND 18! Fill your swag bag!

Dealing with Front-end issues?

Crawl your website with Sitebulb for 300+ tech SEO checks

Try for Free

This Hint has been deprecated, and we no longer consider it best practice. In order to get the most accurate audit results from Sitebulb, please ensure you update to the latest version.

High This Hint is very important, and definitely warrants attention. Issue This Hint represents an error or problem that needs to be fixed.

Contains duplicate element id values

This means that the URL in question contains DOM elements with duplicate id attribute values.

Why is this important?

Using duplicate id attribute values is invalid HTML, as HTML specification clearly states that attributes must be unique. Practically, most browsers can handle duplicate ids, but theoretically they can cause issues if the JavaScript is parsing or calling DOM elements based on these id values. Another issue is it can confuse Screen readers, as they use id values to expose a relationship between page elements.

What does the Hint check?

This Hint will trigger for any internal HTML URL that contains DOM elements with duplicate id attribute values.

Examples that trigger this Hint:

For example, the following HTML document contains two li elements with the same id:

<html>
<body>
<ul>
<li id="given-name">Jon Snow
<li id="given-name">Aegon Targaryen
</ul>
</body>

How do you resolve this issue?

Even if it may appear that browsers can handle pages with duplicate ids, there are lots of very good usability and accessibility reasons for using unique ids, so ensure that all duplicate ids are renamed to be unique and unambiguous. 

Further Reading

Sitebulb Desktop

Find, fix and communicate technical issues with easy visuals, in-depth insights, & prioritized recommendations across 300+ SEO issues.

  • Ideal for SEO professionals, consultants & marketing agencies.

Sitebulb Cloud

Get all the capability of Sitebulb Desktop, accessible via your web browser. Crawl at scale without project, crawl credit, or machine limits.

  • Perfect for collaboration, remote teams & extreme scale.