HTML <font> (Font Definition) Tag

❮ Previous Reference Next ❯

Deprecated: The <font> element is not Supported in HTML5.


<!--Not recommended-->
<p>This is the <font size="50" color="red" face="monaco,Verdana,Arial,sans-serif">wrong way</font> to style text.</p>

<p>This is the <span style="font-size:16px; color:green; font-family:Verdana,Arial,sans-serif;">right way</span> to style text.</p>


The <font> element allows specification of the size, color, and font of the text it encloses.

Note: Use of this element is not encouraged, as it is not part of strict HTML and XHTML specifications. HTML5 defines this element as obsolete. CSS properties like font-face, color, and font-size provide a richer way of providing the same functionality as this element.

Version: HTML 3.2, 4, 4.01

Standard Syntax

<font size="number" color="color" face="fontFamily">...</font>

Browser Support



Attribute Value Description
color color sets the text color using either a browser-dependent named color or a color specified in the hexadecimal #RRGGBB format.
face fontFamily Specifies a list of one or more font names separated by commas.
point-size number Specifies the point size of text and is used with downloadable fonts.
size number Specifies the font size as either a numeric or relative value.
weight number Specifies the weight of the font, with a value of 100 being lightest and 900 being heaviest.

Global Attributes

<font> element also supports the Global Attributes in HTML.

Event Attributes

<font> element also supports the Event Attributes in HTML.

❮ Previous Reference Next ❯