--- id: bad87fee1348bd8acde08812 title: Center Text with Bootstrap challengeType: 0 videoUrl: '' localeTitle: Centro de texto con Bootstrap --- ## Description
Ahora que estamos usando Bootstrap, podemos centrar nuestro elemento de encabezado para que se vea mejor. Todo lo que necesitamos hacer es agregar la clase text-center a nuestro elemento h2 . Recuerde que puede agregar varias clases al mismo elemento separando cada una de ellas con un espacio, como este: <h2 class="red-text text-center">your text</h2>
## Instructions
## Tests
```yml tests: - text: Tu elemento h2 debe centrarse aplicando el text-center la clase testString: 'assert($("h2").hasClass("text-center"), "Your h2 element should be centered by applying the class text-center");' - text: Tu elemento h2 todavía debería tener la clase 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 ```