Text and link color with <body> tag extensions


Text color

You can control the color of all the body text with the text extension to the body tag. Again, the tag uses hexedecimal RGB values to specify text color.

<BODY TEXT="#8E2323">

This text is dark red.

</BODY>

Link color

These attributes let you control the color of link text.

LINK colors an unvisited link.
ALINK controls an active link (in the process of being clicked on).
VLINK controls a visited link.

The default colors are: LINK=blue, ALINK=red, and VLINK=purple.

You specify all link colors in the BODY tag.

<BODY bgcolor="#000000" TEXT="#F0F0F0" LINK="#FFFF00" 
ALINK="#0077FF" VLINK="#22AA22">

Document with custom link colors here.

</BODY>

Please have a look at this example.


Return to the Advanced HTML tutorial