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?


<Below this line, add a link to the EXACT exercise that you are stuck at.>

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.> It tells me the heading is not green when It is.


Replace this line with your code.

Changing the colors!

Big Heading

A giant bear and a little duck were friends.

But the bear got hungry and ate the duck.

<do not remove the three backticks above>

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)

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

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

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

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