id attribute values must be unique
Log in (Premium content) Request a demo
The value assigned to the
id="" attribute must be unique to prevent the second instance from being overlooked by assistive technology. Put another way,
id attributes may not be used more than once in the same document in order to differentiate each element from another.
The Algorithm, in Simple Terms
Ensures that each element on the page with an id attribute has a unique
id attribute value.
Why this is Important
id attribute uniquely identifies elements on a page. It does not make sense to duplicate an
How to Fix the Problem
Rename attributes that reuse an
- HTML 4