Question - What is the use of a class selector in CSS?
Answer -
Class selectors in CSS begin with a “.” (period) key and are followed by the name of the class. It is used to select a statement and modify the style of that element in the corresponding part of the HTML tag.
Consider the following example:
.exampleclass {font-family: TimesNewRomanl; font-size: 20; background: red;}