DEV Community

Discussion on: Reasons not to use IDs in CSS

Collapse
 
dhandspikerwade profile image
Devin Handspiker-Wade • Edited

Another unrelated reason to avoid using IDs: they are automatically created as properties on the global window object in JS.

Collapse
 
pranay_rauthu profile image
pranay rauthu

I think this should be the first reason not to use ids