id attribute value must be unique

Minor

What is the problem?

The "duplicate-id" rule ensures that each id attribute value within an HTML document is unique.

Impacted Groups

Blind
Deafblind

Why is this important?

Duplicate id values can confuse screen readers and other assistive technologies. This can lead to incorrect information being conveyed to users or unexpected behavior, making it harder for them to understand and interact with the content.

How to solve this issue

To fix this, ensure that each id attribute value is unique within the document. This can be achieved by using a consistent naming convention for IDs or by generating unique IDs automatically. By ensuring unique IDs, you can improve the accessibility of your website for screen reader users.

Rule Information

Rule ID

duplicate-id

Severity

Minor

Manual Review Required

No

Rule Group

Deprecated Rules

Guidelines

  • Not applicable

Customise Guidance

You can customise each accessibility rule in SiteAlly with your own guidance, instructions and even links to your own organisation specific documentation.

Enable your website editors to resolve issues quickly with SiteAlly.

Ready to make your website accessible?

SiteAlly provides automated accessibility monitoring, detailed reports, and step-by-step guidance to help you achieve and maintain compliance.