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


#1

Hi, the code below is what I have entered:

<head>
	<title>Changing the colors!</title>
</head>
<body>
<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>
</body>

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.


#2

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


#3

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