asp.net.ph

Skip Navigation Links

FONT Element | FONT Object

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

Remarks

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.

Members

FONT Members

Example

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.
See Also

BASEFONT



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note