Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 269
  • Last Modified:

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

0
rtod2
Asked:
rtod2
1 Solution
 
Michael KnightCommented:
<body style="background-color:#f9fc05;">

NOT


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

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now