Skip to content

Glossary: HTML & CSS Basics

Class

Also written: classes, class attribute, class selector

A label you invent and add with the `class` attribute so CSS can style matching elements together. It is selected with a dot, as in `.price`.

Where the book teaches it

Related terms

SelectorSpecificity