Lesson 9: Font Colour saying font is not green when it is

Hi, the code below is what I have entered:

	<title>Changing the colors!</title>
<h1 style="color: green;font-size:16px">Big Heading</h1>
		<p><h1 style="color: violet">A giant bear and a little duck were friends.</p>
		<p><h1 style="color: red; font-size:10px">But the bear got hungry and ate the duck.</p>

However I am getting the message of "
Oops, try again. Did you remember to make the h1 header green?"

Any ideas??


Replace this line with your code.

<do not remove the three backticks above>
1 Like

style is an attribute you can add to many html elements, not only h1? where you nested the h1 inside the paragraphs, remove the h1 and add the style attribute to the paragraph opening tag

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