To select elements with a specific class, write a period (.) character, followed by the name of the class . You can also specify that only specific HTML elements should be affected by a class. To do this, start with the element name, then write the period (.)