Lesson 9 still need help


Continuing the discussion from Help with Lesson 9: Font color:

Doesn't let me pass when i clearly did it right

Replace this line with your code. 
			<p><h2 style="color:red ;font-size:10px">But the bear got hungry and ate the duck.</p>


Your closing semi-colon on color property is faulty.

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

Hope this helps!? :smile:


The problem is that your are nesting the h2 inside the p and you didn't close the h2 tag


you walked right into the trap which the exercise sets for you. Style is an attribute you can add to many html elements (paragraph, headings and so on)

You should have added the style attribute to the paragraph opening tag, the h2 in the instructions was just to test you