When should I use tags vs classes?

I’m starting a new site and I’m not sure where I should use tags and where I should use classes - could someone explain this to me?

On a high level, you should be using both even on the same elements. The key is to use classes for any rules which you want to reuse and change globally in the future, and to use tags to apply rules which are unique to that individual element.

This thread explains all types of styling in more detail

1 Like