WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML <font> Tag. Not Supported in HTML5.


Example

Specify the font size, font face and color of 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>
Try it yourself »

Definition and Usage

The <font> tag is not supported in HTML5. Use CSS instead.

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


Browser Support

Element
<font> Yes Yes Yes Yes Yes


Optional Attributes

Attribute Value Description
color rgb(x,x,x)
#xxxxxx
colorname
Not supported in HTML5.
Specifies the color of text
face font_family Not supported in HTML5.
Specifies the font of text
>size number Not supported in HTML5.
Specifies the size of text


Standard attributes

In HTML 4.01,<font> Tags support the following standard attributes:

Attributes value description
class classname Specifies the class name of the element
dir rtl
ltr
Specify the text direction of the content in the element
id id Specifies the unique id of the element
lang language_code Specifies the language code of the content in the element
style style_definition Specifies the inline style of the element
title text Specify additional information for the element