Change background color

Posted on 2011-10-08
Last Modified: 2012-08-13
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="" 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

Question by:rtod2
    LVL 9

    Accepted Solution

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


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

    Author Closing Comment

    outstanding, thank you!

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
    Read about why website design really matters in today's demanding market.
    In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
    The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now