I changed the color of the header to green but it continues to tell me I haven't changed it to green. What is going on?


#1


https://www.codecademy.com/courses/web-beginner-en-y2Yjd/1/3?curriculum_id=50579fb998b470000202dc8b#

It tells me the heading is not green when It is.


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


#2

when you have a paragraph (or a heading):

<p>i am a paragraph</p>

you can add the style attribute to the opening tag without creating an additional opening tag in the process:

<p style="">i am a paragraph</p>

this goes for all elements (paragraphs, headings and more)


#3

Here is an update after looking at someone else's code for the same lesson and it now tells me that the first paragraph is not violet.

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

#4

you can look at someone else his code, but do you understand the mistake you made?

As for the new error message, in the line above you have a opening h2 heading tag, and a h1 closing tag, that is no match


#5

yes, i had two opening tags when I only needed one.


#6

I changed the ending tag from h1 to h2 and now my code works. THank you.


#7