The Color Is Green!


#1



HTML Basics II - Font Color

So i'm in the middle of doing the above excercise. I'm getting the error 'However, i'm getting the error of 'Oops, try again. Did you remember to make the h1 header green?'
This is my code:


<head>
	<title>Changing the colors!</title>
</head>
<body>
<h1 style="color: green; font-size:16px">Big Heading</h1> 
<p><h4 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>


#2

It could have to do with these lines:

<p><h4 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>

You should not have the h4 and h1 headings there. Otherwise your code is correct.


#3

So what code is needed then?

How should it be?

It is currently as follows:

'<h1 style="color: green; font-size:16px">Big Heading</h1> 
<p><h4 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>'

Can someone help me with it, and write it with how it should be? I'm about going mad here!


#4

you should remove the nested headings (h4 and h1) from inside your paragraphs and add the style attribute to the paragraph opening tag (<p>)


#5

`

<body>
	<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>
</body>

`

You should get rid of h1 and h4 and assign the style attributes to the paragraphs.


#6

Thank you so much everyone!!