Here i am stuck!

it should inherit color from the body but how to give color property to body?


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

  }
  

</style>

<head> </head>
<body>
<h1> Hello World </h1>
</body>

Your browser information:

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

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

This is not font-color it’s only color.
Change it and it will work.

Thanks man. just did it. it works.

“color:”, changes only the color of its text for the specific class prescribed in your style.
correction should be
color: green;

1 Like