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

  • 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"

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

<title>Lab 2-1</title>

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

<img src="fooddrivelogo.gif" />

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

<p>Please Help!</p>

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

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


Open in new window

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


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

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