Change background color

How do I change to the background color using the #f9fc05 color code.  The assignment says to use the style="background-color:color number" property, but the syntax in the code pasted below is incorrect.  Please advise.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

    "http://www.w3.org/TR/xhtml11/DTD/xhtml11-transitional.dtd">
   
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Lab 2-1</title>
</head>

<body>
<a style="background-color:#f9fc05"></a> 

<div>
<img src="fooddrivelogo.gif" />
<div>

<h1><center>Wanted: Community Food Drive Volunteers</center></h1>

<p>Please Help!</p>

<h2>The most needed non-perishable foods are:</h2>

<ul>
	<li>Canned vegatables, fruit, meats, and fish</li>
	<li>Pasta and tomato sauce</li>
	<li>Cereal or oatmeal</li>
	<li>Powedered milk</li>
<ul>

</body>
</html>

Open in new window

rtod2Asked:
Who is Participating?
 
Michael KnightCommented:
<body style="background-color:#f9fc05;">

NOT


<a style="background-color:#f9fc05;"></a>
0
 
rtod2Author Commented:
outstanding, thank you!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.