© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Lakshmi Navalli
Passion for web development
What If two HTML elements have same ID selectors?
Archit Badjatya
Full Stack Web and Mobile Developer
HTML is quite forgiving. It will not throw any errors and will apply styles to all elements with IDs, but this is termed as bad practice.
Archit Badjatya I appreciated your answer thank you :)