Inherit Styles from the Body Element 777

Inherit Styles from the Body Element 777
0

#1

Tell us what’s happening:
I honestly don’t see what i did wrong

Your code so far


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



<h1 class="h1">Hello World</h1>

</body> 
  }

</style>


Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 10718.88.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.118 Safari/537.36.

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


#2

:thinking:that brace is left over

if you already closed the style label, why it closes again?


#3
  • Give your body element the color property of green.
  • Give your body element the font-family property of monospace.

Said properties should be in the body styles, not h1

Also everything after the </body> tag is invalid