Inherit Styles from the Body Element pls check my code

Inherit Styles from the Body Element pls check my code
0.0 0

#1

Tell us what’s happening:

Your code so far


<style>
  body {
    background-color: black;}
    .body-element{
        body-color: green;
        font-family: monospace;
    }

</style>
<html>
<h1 class="body-element"> Hello World </h1>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-css/inherit-styles-from-the-body-element


#2

Remove your .body element.
I think you misunderstood the instructions.

All you need to do is add the css property color and font-family to your body tag.


#3

already done … thanks for your advice…