Aligning the text


#1


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>
<html>
	<head>
		<title>Sexy background color!</title>
	</head>
	<body>
		<h3> <h1 style="text-align:center"> Favorite Football Teams</h3>
			<ol>
				<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>
			</ol>			
	</body>
</html>


#2

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


#3

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


#4

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?


#5

thanks so much bro (Y)


#6