HTML Basics II 9. Font Color bug?


I did what it wants me to do yet I'm wrong.

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


You have a paragraph <p>

and you're trying to style it with a <h2> tag

<p style =" "

Same here you have an <h1> tag

and you're trying to apply <h2> styles

<h1 style=" ">

@stetim94 will probs give a better reply


the h2 in the information is on purpose, to test you i guess. In the previous exercise was explained that style is an attribute which you can add to opening, so lets say i have:

<h4>heading with style</h4>

i can just add the style attribute to the h4 opening tag:

<h4 style="">heading with style</h4>

same goes for other headings and paragraphs. The opening and closing tags should still match, no need to create additional opening tags in the process of adding a style attribute