font

FilterElements

<font> ... </font>

Deprecated. Not in HTML5. An outdated method for affecting the style (color, typeface, and size) of the enclosed text. This element is no longer used in professional web design in favor of style sheets for changing text appearance.

Start/End Tags

Required/Required

Specifications

  • HTML 4.01

color=

Values: #RRGGBB or color name
Deprecated. Not in HTML5. Specifies the color of the enclosed text.

face=

Values: typeface (or list of typefaces)
Deprecated. Not in HTML5. Specifies a typeface for the text. The specified typeface is used only if it is found on the user’s machine. You may provide a list of fonts (separated by commas), and the browser will use the first available font in the string.

size=

Values: size value
Deprecated. Not in HTML5. Sets the size of the type to an absolute value on a scale from 1 to 7 (3 is the default) or by using a relative value +n or -n (based on the default or basefont setting).
<font face="script" size="+2" color="red">Obsolete.</font>

Rendered Example

Obsolete