--- id: bad87fee1348bd9aefe08806 title: Style Multiple Elements with a CSS Class challengeType: 0 videoUrl: '' localeTitle: Estilo de elementos mĂșltiples con una clase CSS --- ## Description
Las clases le permiten usar los mismos estilos CSS en varios elementos HTML. Puedes ver esto aplicando tu clase de red-text al primer elemento p .
## Instructions
## Tests
```yml tests: - text: Tu elemento h2 debe ser rojo. testString: 'assert($("h2").css("color") === "rgb(255, 0, 0)", "Your h2 element should be red.");' - text: Tu elemento h2 debe tener la clase red-text . testString: 'assert($("h2").hasClass("red-text"), "Your h2 element should have the class red-text.");' - text: Tu primer elemento p debe ser rojo. testString: 'assert($("p:eq(0)").css("color") === "rgb(255, 0, 0)", "Your first p element should be red.");' - text: Su segundo y tercer p elementos no deben ser rojos. testString: 'assert(!($("p:eq(1)").css("color") === "rgb(255, 0, 0)") && !($("p:eq(2)").css("color") === "rgb(255, 0, 0)"), "Your second and third p elements should not be red.");' - text: Tu primer elemento p deberĂ­a tener la clase red-text . testString: 'assert($("p:eq(0)").hasClass("red-text"), "Your first p element should have the class red-text.");' ```
## Challenge Seed
```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


```
## Solution
```js // solution required ```