HTML Duplicate ID

The id attribute must be unique in the document. Duplicate IDs break accessibility and JavaScript getElementById.

Common causes

How to fix

FAQ

Can two elements have same id?
No. id must be unique.
What if I need same style?
Use class.

Fix it now

Try in validator (prefill this example)

Related

All tools · Canonical