---
id: bad87fee1348bd9aedf08736
title: Style the HTML Body Element
challengeType: 0
videoUrl: 'https://scrimba.com/c/cB77PHW'
---
## Description
Now let's start fresh and talk about CSS inheritance.
Every HTML page has a body
element.
## Instructions
We can prove that the body
element exists here by giving it a background-color
of black.
We can do this by adding the following to our style
element:
body {
background-color: black;
}
## Tests
```yml
tests:
- text: Give your body
element the background-color
of black.
testString: assert($("body").css("background-color") === "rgb(0, 0, 0)", 'Give your body
element the background-color
of black.');
- text: Make sure your CSS rule is properly formatted with both opening and closing curly brackets.
testString: assert(code.match(/
```
## Solution
```js
// solution required
```