Class Selectors Match an element that has the specified class. To match a specific class attribute, we always start the selector with a period, to signify that we are looking for a class value . The period is followed by the class attribute value we want to match.