--- id: bad87fee1348bd9aecf08806 title: Use a CSS Class to Style an Element challengeType: 0 videoUrl: 'https://scrimba.com/c/c2MvDtV' forumTopicId: 18337 dashedName: use-a-css-class-to-style-an-element --- # --description-- Classes are reusable styles that can be added to HTML elements. Here's an example CSS class declaration: ```html ``` You can see that we've created a CSS class called `blue-text` within the `

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats


``` # --solutions-- ```html

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats


```