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.
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.