Type: HTML
Change Text Color

You control the look of particular sections of type on your web page with the <FONT></FONT> tag pair and its attributes.

Type Color Remember that when you change the color of your type, you must be sure you are providing a high contrast with the background of your page.
To change the color of a particular section of text, use the color attribute in the <FONT> tag:
<FONT COLOR="#[rrggbb]">colored text</FONT>
Remember that [rrggbb] is the hexadecimal equivalent of the red, green, blue palette.
You might want to change the colors of your hypertext links as well, especially if your choice of background color or image does not provide enough contrast with the default hypertext link colors.

To change the colors of the hypertext links, put the following attributes in the initial body tag:

  • LINK for a hypertext link.
  • ALINK for an active hypertext link.
  • VLINK for a visited hypertext link.

 

<BODY LINK="#[rrggbb]" ALINK="#[rrggbb]" VLINK="#[rrggbb]" >
See HTML: Color for more information about using color in your web pages.

Type: HTML
Key Concepts
Change Text Font
Change Text Size
Change Text Color

 

Personal Home PageWeb Design CenterTutorial MenuTop of Page

Web Design Center
Last Revised: October 19, 2006
© Agatha Taormina