Skip to main content

duplicate-id

Every id attribute value must be unique

Severity: Minor

Description

Ensure the uniqueness of id attributes to prevent assistive technology from overlooking subsequent instances.

Why is it important?

Having duplicate id values is a frequently encountered validation error that can lead to unexpected behavior in scripting and assistive technologies. This issue can compromise both the functionality and accessibility of a website or application. When multiple elements have the same id, screen readers will only recognize the first element and skip the subsequent ones. As a result, users will miss out on the complete content.

How to fix?

Ensure that the page is free from any duplicate id values.

References

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback!

Talk to an Expert
Download Copy