ID vs. Class

This is the kind of foundational CSS knowledge that I often assume everyone knows. Even though it’s a basic topic, Chris Coyier does an excellent job of explaining it in a way that won’t make you feel like a noob.

IDs and Classes the “hooks” we need to build into markup to get our hands on them. CSS obviously needs these so that we may build selectors and do our styling, but other web languages like Javascript depend on them too. But what is the difference between them?

CSS-Tricks: The Difference Between ID and Class

Comments

No comments yet.

Leave a comment

(required)

(required)