Home Site Map Gallery Your Two Cents Service Order


Home HTML Basics Headlines Paragraphs Links Free Links Mail-to Bold Italic Font Color Font Size Background Image Graphics Background Color Aligning Text Aligning Images HTML -Adding Audio HTML - Frames HTML Tables Meta Tags Forms Mouse Over Mega Search Browser Support

Get Your Free E-Mail Account

Isn't it time you
updated your site?





Coloring Your Fonts

<body text=?> sets the font color

<body link=?> sets the color of links

<body vlink=?> sets the color of followed links

<body alink=?> sets the color of links on click

<font color=?> changes font color

</font> returns font to default color

There are two ways to color text on the Web. One is to set the colors for the entire document - specified in the body tag - and the other is to set and change colors as you move through the document, using the font tag.

The body tag is often more practical than the font tag, and it's also supported by more browsers.

Using the body tag, you can set the color scheme for your entire page, specifying the colors for regular text, links (normally blue by default), and followed links. Color is specified by using a numerical code.

If you type:

<body text=#009900 link=#0000FF vlink=#FF0000 alink=#111111>

You will get a nearly illegible, but correctly colored page, with green text and blue links that turn white, on click, and red after they've been followed.

If you write in your HTML file:

<font color=#0000ff>blue</font> with envy.

You'll get:

blue with envy.

You could even change the color of individual letters

<font color=#ff0000>F</font>

<font color=#ff7f00>O</font>

<font color=#ffff00>N</font>

<font color=#CCFF99>T</font>

<font color=#9932cd>C</font>

<font color=#ff0000>O</font>

<font color=#ff7f00>L</font>

<font color=#ffff00>O</font>

<font color=#CCFF99>R</font>
<font color=#0000ff>N</font>

Will give you:

F O N T  C O L O R S

As USUAL with all Netscape-specific tags, you should keep in mind that not all browsers support all font colors.




Up ] HTML Basics ] Headlines ] Paragraphs ] Links ] Free Links ] Mail-to ] Bold Italic ] [ Font Color ] Font Size ] Background Image ] Graphics ] Background Color ] Aligning Text ] Aligning Images ] HTML -Adding Audio ] HTML - Frames ] HTML Tables ] Meta Tags ] Forms ] Mouse Over ] Mega Search ] Browser Support ]

Webdesign ] Banners and Graphics ] Promotional Services ] HTML Tutorials ] Consulting ] Hosting ] Domain Registration ] WIN PRIZES!! ]

BizRate Customer Certified (GOLD) Site We are members of the Chamber or Commerce!

Verify our security!
Verify Our Security

Better Business!

AOL Members Choice Award


Webmaster-at-Large:     webmasteratlarge@planetwebdesign.com  

Planet T-Shirt Logo

  PO Box 22157  Knoxville, Tennessee 37933-0157

Telephone:    865-300-3804      FAX:    865-692-9247

PlanetWebDesign LogoCopyright © 1998, 1999, 2000 PLANETWEBDESIGN TECHNOLOGIES, Inc. All rights reservedBye Bye!!