--- title: Style Multiple Elements with a CSS Class --- # Style Multiple Elements with a CSS Class --- ## Problem Explanation We need to applying our ```red-text``` class to the first ```p``` element. --- ## Solutions
Solution 1 (Click to Show/Hide) In the opening tag of element ```p``` we need to add ```red-text``` class: ```html

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats


``` #### Relevant Links - [Class selectors](https://developer.mozilla.org/en-US/docs/Web/CSS/Class_selectors)