You Need to Stop Targeting Tags in CSS
Read OriginalThis 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.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser