Can't understand this challenge

well I am stuck here I am confused please help

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

Your browser information:

Challenge: Inherit Styles from the Body Element

Link to the challenge:

hi @Ishita1

your codes half way there, you still need :

  • Your h1 element should inherit the font monospace from your body element.
  • Your h1 element should inherit the color green from your body element.

and remove the h1 element from inside the <style> tag

h1 should be placed outside



You just need to move the HTML out of the style element, only CSS goes inside the style element.

Although you do have font on the h1 element that shouldn’t be there, but it will not make the challenge tests fail.

1 Like

Thank you so much for your help