Background Color
An easy, fast-loading way to customize your page without using graphics is to define a background color in your HTML code.
Some guidelines for choosing colors:
- Contrast between background color and foreground text color is the key to legibility.
- A light background color with dark text is the most legible combination.
- A dark background color often makes text illegible, even when a light text color is used.
- Each computing platform and each type of browser displays color differently.
Also, viewers can change the default colors for the text and background on their
browsers.
- Using
web-safe colors can help ensure that viewers see the color you want them to see.
Colors are represented by a series of 6 letters and digits enclosed in quotes.
To define a background color, use the "BGCOLOR" attribute with the "BODY" tag.
In the example below, "FFFFFF" is the hexadecimal code for a white background.
<BODY BGCOLOR="FFFFFF">
Examples:
Do-It-Yourself Guide
Graphics