Your body element should have the color property of green. and Your h1 element should inherit the color green from your body element. this two conditions are no

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

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

<h1>Hello World</h1>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0

Challenge: Inherit Styles from the Body Element

Link to the challenge:

I only see the h1 element. Is there a body element to inherit from?

I do that also but not passed the test

Hi @madhanbathina22770 ,
I copied and pasted your code into the challenge editor and your code works.

Let me know.
I hope I was helpful :wave:

The code you have shared works on my end. Please ensure that you have disabled any extensions that interface with the freeCodeCamp website (such as Dark Mode and Ad Blocker), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

Hope I find you well
Thank you

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.