Need help for this problem

Need help for this problem
0

#1

Tell us what’s happening:

Your code so far


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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36.

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


#2

Hey @raj552,

Do not put h1 tag inside style tag.
Style tag is used to for CSS styles,
similar to what you have done with body element.

See if that helps.


#3

but this is not working


#4

The body element should have color property of green.
If you see closely. you will find that you are not doing so.
Try solving that.


#5

give me an example so i can do it


#6

See,
You are giving “background-color” property value of green.
Whereas challenge asks you to do so for “color” property.
There is a difference between “color” and “background-color” properties.
Color is for color of the text whereas background-color is for background.
Does this help?