So I'm a networking student taking an internet programming elective. I'm doing my assignment, and it says:
"Add a background color to the Web page using the #f9fc05 color code. (Hint: Use the style="background-color: color number" property.)
I've looked through the first two chapters and I've seen nothing that says how to add a color background. So I'm going to list my code below and it would be greatly appreciated if someone could tell me where I should put the code.
Also, if you could look at my <center></center> syntax, that would be great! My book says to use the heading 1 style center-aligned web page. Then to refer to the text-align property in appendix D. I have no idea where appendix D is. I looked several times, so I tried my own thing and it worked.
Tinypic link in case you'd rather see it in Notepad++: http://i42.tinypic.com/eqbbzd.jpg
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-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>
<img src="fooddrivelogo.gif" alt="Join The Food Drive!" />
<p></p>
<center><h1>Please Help!</h1></center>
<p>Our annual food drive takes place this month. This event is the largest one-day food drive in the metropolitan area and has helped feed those in need since 1991. We strive to provide the most nutritious food for individuals and families in our community. If you are unable to bring items to the food bank at 2828 N. Central Avenue in Phoenix, please condsider a cash donation. For every dollar that you donate, our food bank can buy $12 worth of food using wholesale discounts. Please mail donations to: Community Food Drive, 2828 N. Central Avenue, Phoenix, AZ 85000. Our success depends on the time and caring of our donors and volunteers so thank you all!</p>
<h2> The most needed nonperishable foods are:</h2>
<ul>
<li>Canned vegetables, fruit, meats, and fish
Pasta and tomato sauce
Cereal or oatmeal
Powdered milk</li>
</ul>
</body>
</html>
Ahhh thank you!!! In my syntax, I didn't use the semi-colon after the color code but it still works. So what does the semi-colon do exactly? If someone could explain, that would be nice.
"Add a background color to the Web page using the #f9fc05 color code. (Hint: Use the style="background-color: color number" property.)
I've looked through the first two chapters and I've seen nothing that says how to add a color background. So I'm going to list my code below and it would be greatly appreciated if someone could tell me where I should put the code.
Also, if you could look at my <center></center> syntax, that would be great! My book says to use the heading 1 style center-aligned web page. Then to refer to the text-align property in appendix D. I have no idea where appendix D is. I looked several times, so I tried my own thing and it worked.
Tinypic link in case you'd rather see it in Notepad++: http://i42.tinypic.com/eqbbzd.jpg
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-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>
<img src="fooddrivelogo.gif" alt="Join The Food Drive!" />
<p></p>
<center><h1>Please Help!</h1></center>
<p>Our annual food drive takes place this month. This event is the largest one-day food drive in the metropolitan area and has helped feed those in need since 1991. We strive to provide the most nutritious food for individuals and families in our community. If you are unable to bring items to the food bank at 2828 N. Central Avenue in Phoenix, please condsider a cash donation. For every dollar that you donate, our food bank can buy $12 worth of food using wholesale discounts. Please mail donations to: Community Food Drive, 2828 N. Central Avenue, Phoenix, AZ 85000. Our success depends on the time and caring of our donors and volunteers so thank you all!</p>
<h2> The most needed nonperishable foods are:</h2>
<ul>
<li>Canned vegetables, fruit, meats, and fish
Pasta and tomato sauce
Cereal or oatmeal
Powdered milk</li>
</ul>
</body>
</html>
Ahhh thank you!!! In my syntax, I didn't use the semi-colon after the color code but it still works. So what does the semi-colon do exactly? If someone could explain, that would be nice.