DEV Community

Discussion on: A Case Against Type Selectors

Collapse
 
alohci profile image
Nicholas Stimpson

Can you explain "Create classes to reuse styles. Have a .h1 , .h2, big-image. "? How is .h1 better than h1? Not only are you losing the benefits of specificity, but in what circumstances would you not apply an h1 class to an h1 element? Or when would you apply an h1 class to something other than an h1 element?

Collapse
 
collinstommy profile image
Tom Collins

You're absolutely correct. That was a bad example to use. I've update the article. Thanks for the call out.