I’ve read this
Why selecting by ID is not recommended in CSS?
which presents arguments for why you would use classes instead of ID’s. And many dev’s go cold turkey and refuse to use ID’s at all for style selectors.
But, I’m sure many if not most experienced devs still use ID’s as stylistic hooks(while favoring classes).
What are some possible scenarios that might justify using ID’s instead of classes?
From what I’ve found, people (not all, but most) that try to only use class and attribute selectors make a mess of their style sheets. They end up putting a class on everything and then have long selector strings trying to move one certain element, which is where ID selectors shine. ID’s were implemented into CSS for a reason and they are great when used properly.
Just use sparingly.