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.
Read moreWhat is a CSS class?
What is a CSS class? A CSS class is an attribute used to define a group of HTML elements in order to apply unique styling and formatting to those elements with CSS .8 Mar 2022
Read moreHow do you write a class in CSS?
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 (.)
Read more