Font Options
Use font tags to specify text size, color, or face.
You are required to use both an opening and a closing tag:
<font> - opening tag
</font> - closing tag
All text between the opening and closing tags will be affected. The tag has
no effect on non-text elements.
Examples:
<font size="3"> - Specifies font
size 3. Note that these values should be enclosed in double quotes. FYI: Font
size 3 is the base font default size for browsers, unless it is overwritten
in the browser default settings. Therefore, under normal conditions, font sizes
1 and 2 are smaller than standard text while font sizes 4, 5, 6 and 7 are larger
than standard text.
<font size="-3"> or <font
size="+3"> - You can also specify font sizes as + or - values.
Doing this just adds or subtracts the specified number from the browser's default
font size.
<font color="red">
- Specifies font color. Note that these values should be enclosed
in double quotes.
<font face="verdana">
- Specifies font face (typeface). Note that these values should
be enclosed in double quotes. Only fonts that are installed on the
visitor's computer will be used. If the Web visitor does not have
the indicated font, the default font will be used.
<font face="verdana, arial,
helvitica, sans-serif"> - You can specify multiple
fonts, and the first available will be used. If none of the specified
fonts are found, the default is used. You can also specify either
"SANS-SERIF" or "SERIF" in the "face"
tag.
Code Example:
<b>Formatting</b>
<font size="+1">fonts</font>
in<font color="fuchsia"> your</font>
documents<font color="green"> can be used</font>
for<font size="5"> structure</font>
and<font size="6"> emphasis</font>.
Result:
Formatting fonts in your
documents can be used for structure
and emphasis.
NOTE: Most browsers default to Times Roman or a variation of Times
Roman. Times Roman is a serif font face. Studies indicate font sizes
smaller than 3 are more legible when a sans-serif font is used,
whereas font sizes larger than 3 are more legible with a serif font.
|