Inherit Styles from the Body Element CSS

Inherit Styles from the Body Element CSS
0

#1

Tell us what’s happening:
When I run tests it tells me that “Your h1 element should have the text Hello World.” but it appears that my h1 element does have this text.

I tried adding the h1 element into the style guide but that caused even more problems.

Does the h1 element belong in the style guide? If so, would it look like this? (see below)

<style>
  H1{
      text: hello world;
  }

  body {
    background-color: black;
    color: green;
    font-family: monospace;

  }

</style>

<h1 Hello World</h1> 

Your code so far


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

  }

</style>

<h1 Hello World</h1> 

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.16 Safari/537.36.

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


#2

Several things wrong. Yes you can have h1 in style but it lower case h

h1{
}

Second in your hello world h1 your first h1 tag is wrong

<h1>Hello World</h1>

#3

Thank you so much! I appreciate the help, will play closer attention to syntax