---
id: bad87fee1348bd9aedf08736
title: Style the HTML Body Element
challengeType: 0
videoUrl: ''
localeTitle: Estilize o elemento do corpo do HTML
---
## Description
Agora vamos começar de novo e falar sobre herança de CSS. Toda página HTML possui um elemento body
.
## Instructions
Podemos provar que o elemento do body
existe aqui, dando-lhe uma background-color
de background-color
de preto. Podemos fazer isso adicionando o seguinte ao nosso elemento de style
: body {
cor de fundo: preto;
}
## Tests
```yml
tests:
- text: Dê ao seu body
a background-color
de background-color
do preto.
testString: 'assert($("body").css("background-color") === "rgb(0, 0, 0)", "Give your body
element the background-color
of black.");'
- text: Verifique se sua regra de CSS está formatada corretamente com as chaves de abertura e fechamento.
testString: 'assert(code.match(/
```
## Solution
```js
// solution required
```