Sarah Dayan 6/23/2017

You Need to Stop Targeting Tags in CSS

Read Original

This article argues against using HTML tag names as CSS selectors, explaining how it leads to fragile, tightly-coupled code that is hard to scale and maintain. It contrasts this approach with using classes, as recommended by methodologies like BEM, to create more robust and flexible stylesheets that are independent of the DOM structure.

You Need to Stop Targeting Tags in CSS

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week