Tuesday, October 12, 2010

LINK, VLINK, and ALINK


These attributes control the colors of the different link states:

  • LINK - initial appearance – default = Blue
  • VLINK - visited link – default = Purple
  • ALINK - active link being clicked – default = Red


Many web developers will set the link colors of their documents to flow
with the color scheme of the site. The format for setting these attributes is:

<BODY BGCOLOR=”#FFFFFF” TEXT=”#FF0000” LINK=”#0000FF”
VLINK=”#FF00FF” ALINK=”FFFF00”>

The results of the above BODY element would be a white background with
links being blue, visited links as magenta and active links colored in
yellow.

7 comments: