Inherit Styles from the Body Element Error, Help :(

Tell us what’s happening:
I’m pretty sure that the code is rigth but when I run the tests says: x Your body element should have the color property of green . and x Your h1 element should inherit the color green from your body element.

i don’t know if i am the problem or maybe its an error , anyone else has this problem?

Your code so far


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

Your browser information:

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

Challenge: Inherit Styles from the Body Element

Link to the challenge:

When I run you code, it passes the tests. Are you using an up-to-date browser version? Do you have any extensions installed that may change the appearance of websites (such as a “dark mode”).

1 Like

Thanks you , yeap that was it , dark mode.

freeCodeCamp has a native dark mode that you can turn on, so you can have your dark mode extension ignore freecodecamp.org

1 Like