Enter a reason for deleting this comment
In reference to a CSS file, what is a class?
A class is essentially an object.
Class is used when we want to write properties like text align, color width etc.
Some people don't realize a CSS class is used for styling more than one HTML element in your page, a CSS id can be placed on only one HTML element in your page otherwise it will be marked as invalid by w3 validator many people make this mistake
In the CSS, a class selector is a name preceded by a full stop (“.”). You can also define your own selectors in the form of class.
The HTML refers to the CSS by using the attributes class
<p class="class1">This is class1 selector of class attribute in Paragraph tag</p>