This is some text! This is some text! This"> This is some text! This is some text! This" />
Easy Tutorial
❮ Att Meter High Att Button Formaction ❯

HTML <font> Tag

Example

Specify the size, font, and color of the text:

<font size="3" color="red">This is some text!</font>
<font size="2" color="blue">This is some text!</font>
<font face="verdana" color="green">This is some text!</font>

Browser Support

All major browsers support the <font> tag.


Tag Definition and Usage

In HTML 4.01, the <font> element is deprecated.

The <font> tag specifies the font, font size, and color of the text.


Tips and Notes

Tip: Use CSS to define the font, size, and color of the text.


Differences Between HTML 4.01 and HTML5

HTML5 does not support the <font> tag, and HTML 4.01 has deprecated the <center> tag.


Optional Attributes

Attribute Value Description
color rgb(x,x,x)<br>#xxxxxx<br>colorname HTML5 does not support. HTML 4.01 is deprecated. Specifies the color of the text.
face font_family HTML5 does not support. HTML 4.01 is deprecated. Specifies the font of the text.
size number HTML5 does not support. HTML 4.01 is deprecated. Specifies the size of the text.

Standard Attributes

In HTML 4.01, the <font> tag supports the following standard attributes:

Attribute Value Description
class classname Specifies the class name of the element
dir rtl <br>ltr Specifies the text direction of the content in an element
id id Specifies a unique id for the element
lang language_code Specifies the language of the content in an element
style style_definition Specifies an inline style for the element
title text Specifies extra information about the element

For a complete description, visit Standard Attributes.


Event Attributes

In HTML 4.01, the <font> tag does not support any event attributes.

For a complete description, visit Event Attributes.

❮ Att Meter High Att Button Formaction ❯