The HTML Artwork Font Size and Color: <FONT>


The FONT tag allows you to set a size and color for sections of text. The SIZE attribute may take a value between 1 and 7 to indicate an absolute font size. Relative values to the current font size may be specified by placing a "+" or "-" before the number. For example:

1 2 3 4 5 6 7 6 5 4 3 2 1


The COLOR attribute may be used to specify a color for a section of text. It may be set to one of the 16 recognized color values (aqua, black, blue, fuschia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, or yellow) or a hexadecimal RGB color value of the form #RRGGBB. For example:

aqua, black, blue, fuschia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, yellow

Notice that the white font does not show up against the white background. If you set font colors, you should be careful to choose colors that will be displayed against the background color. Also be careful not to choose colors that are used to specify linked text, since that will confuse your readers.


Setting Font Face with the FONT element

This section uses elements of the form: <FONT POINT-SIZE="15" FACE="Arial, Helvetica">

Arial, Helvetica, point-size=15
Arial, Helvetica, point-size=20
Arial, Helvetica, point-size=25
Arial, Helvetica, point-size=30
Arial, Helvetica, point-size=35


Setting Font Face with Style Sheets

This section uses elements of the form: <DIV STYLE="font-family:Arial, Helvetica;font-size:15pt">

Arial, Helvetica, point-size=15
Arial, Helvetica, point-size=20
Arial, Helvetica, point-size=25
Arial, Helvetica, point-size=30
Arial, Helvetica, point-size=35

[HTML CD Home Page]

Vivian Neou, vivian@catalog.com
Copyright © 1999 Vivian Neou