A class selector begins with a period. A style can be applied to multiple elements using a class selector. The following 'testClass' class selector creates a background of orange. It is applied to two <p> elements that have their class attribute set to 'testClass'.

An ID selector begins with a pound sign (#). On an HTML page, an element can have a unique ID, which can be assigned using the ID attribute. When using the ID attribute, an ID should be unique and should not be shared by multiple elements. The following