Continually Improving.... let us know how support@devdiamond.net Sign in | Sign up
home articles news blog forum  

 
 


 
Skip Navigation LinksHome > Article > Text Formatting :: FONT Tag
Text Formatting :: FONT Tag
Abstract :
Learn about the FONT Tag, and what is it used for.

Views : 3190
Published : Saturday, March 16, 2002
By
HyperLink

Avarage Rating :
Page Page 1 of 1

One of the more fixable text-formatting tags is the FONT tag. A number of parameters can be supplied to change the look of the text. The most commonly used parameters are listed below

Parameter Name Description
COLOR Specifies the color in which the text shold be displayed
FACE Specifies the font name to use
SIZE Specifies the relative size to use for the text

The FACE parameter can list multiple fonts, separated by commas. If you are using a font specific to a particular machine, be sure you specify a similar font as the second font in the tag. For instance Tahoma is a font normally available with windows. However, Tahoma is not normally available on other platforms. A good use of the FACE parameter follows:

<font face="Tahoma, Arial, Helvetica">

if the Tahoma font is not available, the browser looks for Arial. If Arial isn't available, it looks for Helvetice. If Helvetica is also missing, the browser reverts to the default font for the browser

the SIZE parameter does not allow exact pixel or point size ; rather, it uses relative values. You can specify values using two different methods. The first uses an absolute value of 1 trough 7 as follows:

<font face="Arial" size=3>

You can also specify a change in font size using values -4, -3 -2, -1, +1, +2 and +3.

<-- Back to CODE Tag -- Next to Miscellaneous Formatting Tags -->



About Author

        Yasir Send Feedback
        Yasir is a .NET expert, with over 5 years experience in Microsoft Technologies, 8 years overall programming experience, he is the owner, founder & primary contributor of Minwar.com, and he also works as IT Director in the hospitality industry.