Language References
Specifies a new font, size, and color to be used for rendering the enclosed text. | HTML 3.2, 4, 4.01. Deprecated |
HTML Syntax
<font
class = classname
color = color
face = font
id = value
size = n
style = css properties
title = text
event = script
>
The FONT element lets authors change the color, size, and typeface [font family] of the current or default font. Any text between <FONT></FONT> tags renders in the specified font characteristics.
If the BASEFONT element has previously been used to set the base font, font size changes specified with the FONT size attribute are relative to the base font. Otherwise they are relative to the default font for the browser.
For the face attribute, browsers use the first font in the list if it is available, otherwise it uses the second font if it is available, and so on. If none of the specified fonts are available, no font face change occurs.
This element has been deprecated in favor of the CSS font property.
FONT Members
The following example shows the FONT element in use:
<blockquote>This example shows the effect of <font face="helvetica,arial,sans-serif" color=navy size=+1>
using the FONT tag to change the font to a navy sans-serif font.</font>
Now the font will change to a <font face="timesroman,serif" size=+3 color=maroon>
maroon serif font that has a size of +3 points.</font>
which would render on a Web page as
This example shows the effect of using the FONT tag to change the font to a navy sans-serif font. Now the font will change to a maroon serif font that has a size of +3 points.
BASEFONT