Losing the will to live, 12 background color


#1

<!DOCTYPE html>
<html>
	<head>
		<title>Sexy background color!</title>
	</head>
	<body p style="background-color: brown;">Hello!</p>
		<h3>Favorite Football Teams</h3>
			<ol p style="background-color: yellow;">Damn</p>
				<li>The Hawthorn Football Club</li>	
				<li>San Franscisco 49ers</li>
				<li>Barcelona FC</li>
			</ol>			
	</body>
</html>

Says change to brown it changes to brown ...


#2

background-color not background-colour...........


#3

Still get the brown error message...


#4

What are the instructions??


#5

why?? the p inside the <ol>??


#6

1)Change the background color of the <body> tag to brown. To do so, add the style attribute to the opening <body> tag, similar to the example above.
2)Change the background color of the <ol> tag to yellow.

#7

remove the p inside the <ol>


#8

Oops, try again. Make sure you set the body's background-color to brown.

is the error I get


#9

Can I see your code please?


#10

<!DOCTYPE html>
<html>
	<head>
		<title>Sexy background color!</title>
	</head>
	<body p style="background-color: brown;" > Hello!</p>
		<h3>Favorite Football Teams</h3>
			<ol> <p style="background-color: yellow;">Damn</p>
				<li>The Hawthorn Football Club</li>	
				<li>San Franscisco 49ers</li>
				<li>Barcelona FC</li>
			</ol>			
	</body>
</html>

#11

the p inside body...
You don't need the p tag before applying a style.....


#12

Nevermind, tried removing the p as you said and it worked!

thank you!


#13

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.