well I am stuck here I am confused please help
<style>
body {
background-color: black;
color: green;
font-family: monospace;
}
<h1 font > Hello World</h1>
</style>
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
<style>
...
</style>
tag
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