Font
 
End Tag: Required
Support Key: 2 | 3 | 3.2 | IE1 | M | N1.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 | Top Of Tree | Tag Index | Tag History


What is it?
This Physical Style tag is the most versatile of all the character formatting tags and is also the only one of this type to accept attributes. The tag was first introduced by Netscape which allowed the SIZE attribute to control font sizing. Internet Explorer also supports this tag and has added two new attributes, COLOR and FACE which control the text color and typeface respectively. Until this tag 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 tag to HTML has increased the authoring possibilities greatly.
Attributes
Color
2 | 3 | 3.2 | IE1 | M | N2
Required? No
Description: Specifies the color of the enclosed text.
Values: RGB triplet or a special Color name
Face
2 | 3 | 3.2 | IE1 | M | N3B5
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 | IE | M | N4B5
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 | IE1 | M | N1.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.

Style Sheet Attributes
[More on Cascading Style Sheets]
Class
2 | 3 | 3.2 | IE3B1 | M | N4B2
Required? No
Description:
This represents an assigned semantic classification grouping(s) for the current tag.
Values:
Given as a comma separated list of alphanumeric characters. Class names may contain spaces (multiple consecutive spaces treated as a single space.)
ID
2 | 3 | 3.2 | IE3B1 | M | N4B2
Required? No
Description:
This assigns an alpha-numeric identifier that is unique to this tag instance. Style sheets may use this attribute to reference the current instance of this tag. Hyperlinks may also use this identifier to serve as a destination.
Values:
An alphanumeric string - initial character must be a letter followed by alphabetic characters, digits, "-" or "." characters. The allowable set of alpha-characters is restricted to the A-Z and a-z set.
Style
2 | 3 | 3.2 | IE3B1 | M | N4B3
Required? No
Description:
This attribute is a text string that provides rendering style information for the current tag.
Values:
Please see the description of inline styles for more information on how to use this attribute and its possible values.
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
%Anchors% | %Virtual Formatting% | %Physical Formatting% | %Block Format Parent% | %Multimedia Parent% | <Body> | <Address> | <Basefont> | <Heading> | <Marquee>
Exceptions: <Pre>
Content Model
%Text% | %Anchors% | %Virtual Formatting% | %Physical Formatting% | %Line Break Content% | %Multimedia Content%
Tips & Tricks
General
Color
Face
Size
Browser Peculiarities
Boring Copyright Stuff...