Skip to content

24 ways to impress your friends

Vote up?

Drew McLellan

Russell – the # is a ID selector, just as the dot is a Class selector. The fundamental difference is that an ID uniquely identifies an item on the page – you can’t have two items with the same ID.

A class is more of a grouping concept (think ‘classification’). Many items on a page can be part of the same class.