Not accepting background colour as brown


#1

I'm on section 12: Background colour of HTML basics II, I've written the code multiple ways but I keep getting the error message: "Make sure you set the body background-colour to brown". The background colour is a red-brown is this right? Here is my code:

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

Have I over looked some thing? I have tried resetting the code and loading in a different browser, but it doesn't seem to be working. Please help!


#2

Hi Lily,

The semi-colon (;) has to go inside the quotes, like this:

<element style="property: value;">
                               ^ see how it's *inside* the quotes?

:)


#3

Wooooo Thank you. It worked. :smile:


#4

Thank you lily for posting this question i was stuck on it for like 4 hours lol i feel so stupid but thanks for posting it


#5

cannot we just not use the double quotes and then try cause not using double quotes worked for me in earlier exercises but not in this one, can anyone please help. Here is my code:

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

btw thanks lily for posting the question.


#6

Because without quotation was introduced in html5, after this course was written. And SCT (submission correctness test) isn't always perfect


#7

thanks for the help, i am really relieved to know the reason for the double quotes issue.


#8

@lily_thornton; am experiencing the same problem:have you got answers


#9

If you need help, please make your own topic with code + error message + question. Don't revive a 3 month old topic