--- id: bad87fee1348bd8acde08812 title: Center Text with Bootstrap challengeType: 0 videoUrl: '' localeTitle: Центрирование текста с помощью Bootstrap --- ## Description
Используя Bootstrap, мы можем центрировать наш элемент заголовка, чтобы он выглядел лучше. Все, что нам нужно сделать, это добавить класс text-center к нашему элементу h2 . Помните, что вы можете добавить несколько классов в один и тот же элемент, разделив их пробелом, например: <h2 class="red-text text-center">your text</h2>
## Instructions
## Tests
```yml tests: - text: 'Ваш элемент h2 должен быть центрирован, применяя класс text-center' testString: 'assert($("h2").hasClass("text-center"), "Your h2 element should be centered by applying the class text-center");' - text: Ваш элемент h2 должен по-прежнему иметь класс 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 ```