<font> tag

HTML <font> tag

The <font> tag defines font face, size, and text color.

HTML5 does not support the <font> tag so it is better to use CSS font related properties.

Syntax:
<font size=”number” face=”font-family-name” color=”color name”></font>

Example

<p><font size="6" color="Navy">Font color is Navy</font></p>

Default value

NONE

How Browser will display

INLINE.

Difference between HTML4.01, XHTML and HTML5

HTML4 XHTML HTML5
NA NA deprecated in HTML5

Attributes used with comment tag

Attribute Description
size To define the size of the text of an element.
HTML5 does not support this attribute with the <font> element.
face This attribute sets the font family for the text color of an element.
HTML5 does not support this attribute with the <font> element.
color defines the text color of an element.
HTML5 does not support this attribute with the <font> element.

Global Attributes

The <font> tag is deprecated so it does  not support Global attributes.

Event Attributes

The <font> tag does  not support Event attributes.

Supporting Browsers

supporting-browsers for tags

Related Tags

There are no related HTML tags so you should use CSS Fonts.

Tutorials for all brains!