HTML <font> tag

Updated: 10/11/2017 by Computer Hope

HTML font tagWhen writing in HTML, the <font> tag was an inline element used to change certain qualities of a block of text on a web page. It was useful for changing a font's size, face, and color. The following sections contain information about this tag, including an example of it in use, as well as related attributes and browser compatibility.

Note: The <font> tag is not supported going forward; CSS should be used instead.

Example code

<font size="4" color="Green">Words and things.</font>
<font size="2" color="#c1c1c3">Text that looks different.</font>
<font face="Arial" color="Orange">I am a sentence!</font>

Example result

Words and things. Text that looks different. I am a sentence!

Old Attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The <font> tag is deprecated, but at one time it utilized the unique attributes contained in the following table.

Attribute Description
color Designates the color of text
face Designates the look of text
size Designates the size of text


Internet Explorer Firefox Safari Opera Chrome
All versions * All versions * All version * All versions * All versions *

*Until it is removed in a future version of HTML

Block of text, Browser, Compatibility, Font, Web design terms