Categories
Frontend Technology

Don’t use IDs in CSS

This article originally appeared on my first blog, f055.net In CSS, you can assign styles to elements in 3 ways: either by a direct reference to an HTML tag, or by a class attribute, or finally, by the id attribute. Each of these approaches has it’s pros and cons, but in this article, I’ll highlight why you should avoid