Losing the will to live, 12 background color

<!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;">■■■■</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 …

background-color not background-colour…

Still get the brown error message…

What are the instructions??

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

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.

remove the p inside the <ol>

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

is the error I get

Can I see your code please?

<!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;">■■■■</p>
				<li>The Hawthorn Football Club</li>	
				<li>San Franscisco 49ers</li>
				<li>Barcelona FC</li>
			</ol>			
	</body>
</html>

the p inside body…
You don’t need the p tag before applying a style…

1 Like

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

thank you!

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