Class selectors let us target elements based on their class attribute. The main difference between a class and an ID selector is that IDs are unique. They're used to identify one element on the page, whereas a class can be used to classify and target more than one element.

This makes classes more flexible than IDs as you will soon see. Class selectors are defined with the dot character followed by the class name.