Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Instruction

Class Selectors

Class selectors match elements based on the value of their class attribute. Class selectors are defined with the dot (.) character followed by the class name. For instance, if an element has a class attribute with the value img-user:

<img class="img-user" src="user-035.jpg" alt="cool user" />

you target the element with CSS like so:

.img-user {
  width: ...