Font

End Tag: Required
Support Key: 2 | 3 | 3.2 | 4 | IE1 | M | N1 | O2.1
What is it?
Attributes
Tag Example
Parent/Content Model
Tips & Tricks
Browser Peculiarities
= Index DOT Html by Brian Wilson [bloo@blooberry.com] =
Main Index | Element Tree | Element Index | HTML Support History


What is it?
This Physical Style element is the most versatile of all the character formatting elements and is also the only one of this type to accept its own attributes. The element was first introduced by Netscape which allowed for the SIZE attribute to control font sizing. Internet Explorer also supports this element and added two new attributes, COLOR and FACE which control the text color and typeface respectively. Until this element was introduced, the only font display variations produced at the character level by graphical browsers were usually Bold, Italic, Underline and fixed-width fonts, or combinations of those characteristics. Addition of this element to HTML has increased the authoring possibilities greatly (although Cascading Style Sheets [-->Index DOT Css] now offer far greater authoring possibilities.)

Common Attributes
%Core%
2 | 3 | 3.2 | 4 | IE3 | M | N4B2 | O3.5
%Events%
2 | 3 | 3.2 | 4 | IE4B1 | M | N | O
%Language%
2 | 3 | 3.2 | 4 | IE4 | M | N | O

Specific Attributes
Color
2 | 3 | 3.2 | 4 | IE1 | M | N2 | O2.1
Required? No
Description: Specifies the color of the enclosed text.
Values: The standard HTML color specification methods.
Face
2 | 3 | 3.2 | 4 | IE1 | M | N3B5 | O3
Required? No
Description:
This attribute indicates a specific font typeface to be used instead of the default typeface used in the browser. If the system that is viewing the document does not have the font typeface specified by this attribute then the browser default is used. To ease portability, multiple typefaces can be specified in the attribute value separated by commas. It will check for availability starting from the style name on the left, working its way right.
Values:
Comma separated list of font names. If the font name contains spaces, the whole name should be embedded in single quotes (the ' character.)
Point-size
2 | 3 | 3.2 | 4 | IE | M | N4B5 | O
Required? No
Description:
This new Netscape attribute is an alternate method of specifying the size of text content. It allows for a richer range of font sizes than the static 7 level scale used by the SIZE attribute. Documentation does not specify what should happen if BOTH SIZE and POINT-SIZE attributes are present.
Values:
Integers representing font point size
Size
2 | 3 | 3.2 | 4 | IE1 | M | N1 | O2.1
Required? No
Description:
This controls the size of text contained in the font tag.
Values:
Values are integers which represent absolute values in the size range from 1 (smallest) to 7 (largest). Values can also be specified relative to the current BASEFONT value (default usually being 3) by preceding an integer value with a '+' or '-' symbol.
Example
Font SIZE relative:  <font SIZE="+2">text</font>
Font SIZE absolute: <font SIZE=6>text</font>
Font POINT-SIZE:   <font POINT-SIZE=20>text</font>
Font COLOR:          <font COLOR="#00FF00">text</font>
Font FACE:              <font FACE="Arial,'Times New Roman',System">text</font>
Parent Model
%In-line Parent% | %Block Parent%
Content Model
%In-line Content%
Tips & Tricks
General
Color
Face
Size
Browser Peculiarities
Boring Copyright Stuff...