--- id: bad87fee1348bd9aedf08746 title: Inherit Styles from the Body Element challengeType: 0 videoUrl: '' localeTitle: Наследовать стили из элемента тела --- ## Description
Теперь мы доказали, что каждая HTML-страница имеет элемент body , а ее элемент body также может быть связан с CSS. Помните, вы можете стилизовать свой элемент body же, как любой другой элемент HTML, и все ваши другие элементы наследуют стили вашего body .
## Instructions
Во-первых, создайте элемент h1 с текстом Hello World Затем дадим все элементы на вашей странице цвета green , добавив color: green; к объявлению стиля вашего body . Наконец, придайте вашему body элемент семейства шрифтов monospace , добавив font-family: monospace; к объявлению стиля вашего body .
## Tests
```yml tests: - text: Создайте элемент h1 . testString: 'assert(($("h1").length > 0), "Create an h1 element.");' - text: Ваш элемент h1 должен иметь текст Hello World . testString: 'assert(($("h1").length > 0 && $("h1").text().match(/hello world/i)), "Your h1 element should have the text Hello World.");' - text: 'Убедитесь, что ваш элемент h1 имеет закрывающий тег.' testString: 'assert(code.match(/<\/h1>/g) && code.match(/

/g).length === code.match(/

h1 element has a closing tag.");' - text: Дайте элементу своего body свойство color green . testString: 'assert(($("body").css("color") === "rgb(0, 128, 0)"), "Give your body element the color property of green.");' - text: Дайте вашему элементу body свойство font-family monospace . testString: 'assert(($("body").css("font-family").match(/monospace/i)), "Give your body element the font-family property of monospace.");' - text: Ваш элемент h1 должен наследовать шрифт monospace от вашего элемента body . testString: 'assert(($("h1").length > 0 && $("h1").css("font-family").match(/monospace/i)), "Your h1 element should inherit the font monospace from your body element.");' - text: Ваш элемент h1 должен наследовать зеленый цвет от вашего элемента body . testString: 'assert(($("h1").length > 0 && $("h1").css("color") === "rgb(0, 128, 0)"), "Your h1 element should inherit the color green from your body element.");' ```

## Challenge Seed
```html ```
## Solution
```js // solution required ```