Font

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



   Quick Statistics   
End Tag:
   Required
Standards Details:
Deprecated in HTML 4.x/XHTML 1.0. Dropped in XHTML 1.1 in favor of CSS.
XHTML Modules:
Legacy
CSS 'display' Type:
"inline"
CSS Mapping:
font-size, font-family, color
Default Rendering:
NA
Official Docs:
HTML 4.x, XHTML 1.0
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 special attributes. The element was first introduced by Netscape which allowed for the SIZE attribute to control font sizing. Internet Explorer followed suit 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 greatly increased an author's presentation capabilities (although this control is quite meager now compared to what Cascading Style Sheets [-->Index DOT Css] now allows.)

Common Attributes
%Core%
[2|3|3.2|4] [X1|X1.1] [IE3|M|N4B2|O3.5]
%Accessibility%
[2|3|3.2|4] [X1|X1.1] [IE4B1|M|N6|O5]
%Events%
[2|3|3.2|4] [X1|X1.1] [IE4B1|M|N6B1|O4]
%Language%
[2|3|3.2|4] [X1|X1.1] [IE4|M|N|O]
%Editing%
[2|3|3.2|4] [X1|X1.1] [IE5.5|M|N|O]

Specific Attributes
Color
[2|3|3.2|4] [X1|X1.1] [IE1|M|N2|O2.1]
Standards Details: Deprecated in HTML 4.x/XHTML 1.0; Dropped in XHTML 1.1 in favor of CSS
Required? No
Description: Specifies the color of the enclosed text.
Values: CDATA [The standard HTML color specification methods apply.]
Face
[2|3|3.2|4] [X1|X1.1] [IE1|M|N3B5|O3]
Standards Details: Deprecated in HTML 4.x/XHTML 1.0; Dropped in XHTML 1.1 in favor of CSS
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: CDATA. [Comma separated list of font names. If the font name contains spaces, the whole name should be embedded in single quotes (the ' character.)]
Font-weight
[2|3|3.2|4] [X1|X1.1] [IE|M|N4B5|O]
Standards Details: NA
Required? No
Description:
This attribute controls the boldness characteristics of text content in the same way the 'font-weight' [-->Index DOT Css] property does in CSS - a nine level boldness scale (100-900) with '400' being the standard default. Values can also be expressed as relative changes (+/-) of the current font boldness.
Values: 100 | 200 | 300 | 400 [DEFAULT]| 500 | 600 | 700 | 800 | 900
Point-size
[2|3|3.2|4] [X1|X1.1] [IE|M|N4B5|O]
Standards Details: NA
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] [X1|X1.1] [IE1|M|N1|O2.1]
Standards Details: Deprecated in HTML 4.x/XHTML 1.0; Dropped in XHTML 1.1 in favor of CSS
Required? No
Description:
This controls the size of text contained in the font tag.
Values:
CDATA. [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.]
Markup example and Tests
Font SIZE relative:  <font size="+2">font text</font>
Font SIZE absolute: <font size="6">font text</font>
Font POINT-SIZE:   <font point-size="20">font text</font>
Font COLOR:          <font color="#00FF00">font text</font>
Font FACE:            <font face="Verdana,'Times New Roman',System">font 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...