Defining the background and text color of a web page
Issue
Defining the background and text color of a web page.
Solution
Although it is possible to do this in the HTML BODY tag we recommend you specify the background values in CSS as shown below.
When
defining the color of any web page element you may need to use
HTML color codes. For
major colors you can also specify the names of those colors instead of using
the code codes, for example, red, blue, green, and black.
body{
font-family:Helvetica,Arial,sans-serif;
color:#333;
background-color:#fff;
}
If your page is not using CSS or you don't want to convert to CSS below are the steps on how to do this in the BODY tag.
<BODY TEXT="#092d07" LINK="#1FOOFF" VLINK= "#000000" ALINK="#000000" BGCOLOR="#ffffff">
TEXT= The color of text.
LINK = The color of links.
VLINK = Visited link color.
ALINK = Color of the active link, or the link being clicked on.
BGCOLOR = The page background color.
