Line


Wallpaper & Colors


Line


Before beginning this section you will need to have a general understanding of how colors are mixed using letters and numbers from the hexadecimal system.

You may add wallpaper and decide the color of your text and links by adding the following attributes inside the <BODY> tag:

BACKGROUND="address/wallpaper.gif" Wallpaper
BGCOLOR="#6 digit hexadecimal number"
Background Color
FGCOLOR="#6 digit hexadecimal number"
Foreground Color
TEXT="#6 digit hexadecimal number"
Text Color
LINK="#6 digit hexadecimal number"
Normal link color
VLINK="#6 digit hexadecimal number"
Color of link after use
ALINK="#6 digit hexadecimal number"
Color of link being clicked

To determine the six digit hexadecimal numbers you will first need to decide what colors you want. Than you can mix your own colors, use charts in books, look at other web site's source code, or search the internet for resources that provide color tables.


Here are two examples of a <BODY> tag with the above attributes.


Example of a body tag when the wallpaper file is saved in the same folder or subdirectory as the web page:

<BODY BACKGROUND"wallpaper_name.gif" BGCOLOR="#EFFFFF" FGCOLOR="#FF00FF" TEXT="#0000AA" LINK="#FF00FF" VLINK="#3377FF" ALINK="#009DDE">


Example of a body tag when the wallpaper file is saved in a folder that is located in the same folder or subdirectory as the web page:

<BODY BACKGROUND="folder_name/wallpaper_name.gif" BGCOLOR= "#EFFFFF" FGCOLOR="#FF00FF" TEXT="#0000AA" LINK="#FF00FF" VLINK= "#3377FF" ALINK="#009DDE">


The ending </BODY> tag remains the same and does not need anything extra added no matter how many attributes are added to the beginning <BODY> tag.


FONT TAGS

There is a way to change the color of individual letters and words. The <FONT> tag may be used for indicating the desired color using the hexadecimal system.

<FONT COLOR="#0000AA"> This tag begins the font color change.
</FONT> This tag ends the font color change.



© Barbara Gibson, October 1996
Fourth Edition, January 1998



HTML Tutorial Table of Contents
Beginning your HTML Document/ Simple HTML Tags
Simple Anchors & Links/ The Hexadecimal System/ Wallpaper & Colors
Gathering Graphics for Your Web Page / Adding Graphics & Graphic Links / Tables / Forms
Frames/ Image Maps