Aligning the text


once i have achieved what the code wants me to do an error message appears stating "Oops, try again. Make sure you use 'text-align:center' for the < h3 > style attribute."

please someone help asap i really want to move on.

<!DOCTYPE html>
		<title>Sexy background color!</title>
		<h3> <h1 style="text-align:center"> Favorite Football Teams</h3>
				<li> <h1 style="text-align:left">The Hawthorn Football Club</li>	
				<li><h1 style="text-align:center">San Franscisco 49ers</li>
				<li><h1 style="text-align:right">Barcelona FC</li>


the <h1> in the example was just to show how to add a style attribute to a opening tag.

You can add style attributes to many opening tags (including h3 and li), add the style attribute to h3 and li directly without h1


aaahh, i thought you had to always add a h3 tag before aligning text, thank you i have passed it now.


no, the style attribute can be added to many opening tags (<body>, <p>, <span> and much more.

plus, you already seen attributes before:

<a href="url">click me</a> <img src="imagename.jpg">

src and href are also attribute. Can you see the pattern that you can just add attributes to opening tags?


thanks so much bro (Y)