class selector

A CSS selector that matches elements with a given class name, written with a dot such as .card.

In more detail

Classes are the everyday tool for styling components. Attribute selectors and pseudo-classes count the same as a class for specificity.

Related terms

Taught in

References