--- id: bad87fee1348bd8acde08812 title: Center Text with Bootstrap challengeType: 0 videoUrl: '' localeTitle: Texto Central com Bootstrap --- ## Description
Agora que estamos usando o Bootstrap, podemos centralizar nosso elemento de título para torná-lo melhor. Tudo o que precisamos fazer é adicionar o text-center da classe ao nosso elemento h2 . Lembre-se que você pode adicionar várias classes ao mesmo elemento, separando cada uma delas com um espaço, como este: <h2 class="red-text text-center">your text</h2>
## Instructions
## Tests
```yml tests: - text: Seu elemento h2 deve ser centrado aplicando a classe text-center testString: 'assert($("h2").hasClass("text-center"), "Your h2 element should be centered by applying the class text-center");' - text: Seu elemento h2 ainda deve ter a classe red-text testString: 'assert($("h2").hasClass("red-text"), "Your h2 element should still have the class red-text");' ```
## Challenge Seed
```html

CatPhotoApp

Click here for cat photos.

A cute orange cat lying on its back. Three kittens running towards the camera.

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 ```