Return
to previous web page
Using Color in HTML Documents
Color Tags in HTML are represented by a series of 2 digit
hexidecimal codes that are displayed in a series.
Each pair of codes represents a value of
RED,
GREEN, or
BLUE.
As an example the hex-code for the color Red
would be "FF
00
00".
Red=FF Green=00 Blue=00.
The color Blue would be seen as "0000FF".
"F" represents the full value of a color,
"0" represents the absence of color in hexidecimal.
Changing the Background Color
To change the background color of a page to LIGHT AQUA.
Type the following <BODY> tag
<body bgcolor="#C8FFFF">
Changing the Text Color
To change the text color of a page to WHITE.
Type the following <BODY> tag
<body text="#FFFFFF">
Changing the Text and Background Colors
To change the text color of a page to WHITE and the
background color to LIGHT AQUA.
Type the following <BODY> tag
<body text="#FFFFFF" bgcolor="#C8FFFF">
Some Common Colors
- Blue = #0000FF
- Black = #000000
- RED = #FF0000
- White = #FFFFFF
- Yellow = #FFFF00
- Green = #00FF00
- Purple = #CD2CD4
Selectively Change Text Colors
To change only a portion of text to another color use
the following:
<font color=#9200DF>
</FONT
>PURPLE</font>
The above tag created this:
PURPLE
Change Text Link Colors
This tag tells the browser to show all links as color
#FFFF00 or Yellow.
<body link="#FFFF00">
Change "Visited" Link Colors
This tag tells your browser to show all visited links as
color #00FF00 or Green.
The <vlink="anycolor"> parameter tells the browser what
color your visited links should be.
It must be placed within the <BODY> tag.
<body vlink="#00FF00">
Change "Active" Link Colors
This tag tells your browser to show all visited links as
color #564D8D or Blue.
The <alink="anycolor"> parameter tells the browser what
color the active links will be.
It must be placed within the <BODY> tag.
<body alink="#564D8D">