localeTitle: Estilo vários elementos com uma classe CSS
---
## Description
<sectionid="description"> As classes permitem que você use os mesmos estilos CSS em vários elementos HTML. Você pode ver isso aplicando sua classe de <code>red-text</code> ao primeiro elemento <code>p</code> . </section>
## Instructions
<sectionid="instructions">
</section>
## Tests
<sectionid='tests'>
```yml
tests:
- text: Seu elemento <code>h2</code> deve estar vermelho.
testString: 'assert($("h2").css("color") === "rgb(255, 0, 0)", "Your <code>h2</code> element should be red.");'
- text: Seu elemento <code>h2</code> deve ter a classe <code>red-text</code> .
testString: 'assert($("h2").hasClass("red-text"), "Your <code>h2</code> element should have the class <code>red-text</code>.");'
- text: Seu primeiro elemento <code>p</code> deve ser vermelho.
testString: 'assert($("p:eq(0)").css("color") === "rgb(255, 0, 0)", "Your first <code>p</code> element should be red.");'
- text: Seu segundo e terceiro elementos <code>p</code> não devem ser vermelhos.
testString: 'assert(!($("p:eq(1)").css("color") === "rgb(255, 0, 0)") && !($("p:eq(2)").css("color") === "rgb(255, 0, 0)"), "Your second and third <code>p</code> elements should not be red.");'
- text: Seu primeiro elemento <code>p</code> deve ter a classe <code>red-text</code> .
testString: 'assert($("p:eq(0)").hasClass("red-text"), "Your first <code>p</code> element should have the class <code>red-text</code>.");'
```
</section>
## Challenge Seed
<sectionid='challengeSeed'>
<divid='html-seed'>
```html
<style>
.red-text {
color: red;
}
</style>
<h2class="red-text">CatPhotoApp</h2>
<main>
<p>Click here to view more <ahref="#">cat photos</a>.</p>
<ahref="#"><imgsrc="https://bit.ly/fcc-relaxing-cat"alt="A cute orange cat lying on its back."></a>