Syntax | <FONT>...</FONT> |
---|---|
Attribute Specifications |
|
Contents | Inline elements |
Contained in | Inline elements, block-level elements except PRE |
The FONT element, deprecated in HTML 4.0 in favor of style sheets, allows authors to suggest rudimentary font changes.
The FONT element can be used to suggest relative changes in font size with <FONT SIZE="+1"> or <FONT SIZE="-1">. These tags increment or decrement the font size relative to the size specified in the BASEFONT element, or relative to a base size of 3 if no BASEFONT element is used. Sizes are based on a seven-point scale (1..7) that is browser dependent.
Authors can specify SIZE values such as -2 and +3, as well as absolute values such as 1. While a value like -2 may look right to you with your eyesight and user settings, it could easily be unreadable to a user with different eyesight and user settings.
The COLOR attribute suggests a text color.
The FACE attribute gives a comma-separated list of font faces in which to display text. The fonts are listed in order of preference, so that if the browser does not have the first font listed, it will try the second, then the third, and so on.
The FONT element is an inline element, meaning that it cannot contain block-level elements such as P and TABLE.