The HTML class attribute is used to define equal styles for elements with the same class name.

In CSS, to select elements with a specific class, write a period (.) character, followed by the name of the class.

Example -