Breaking

Wednesday, May 8, 2019

HTML font Tag.

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> tag specifies the font face, font size, and color of text.

Browser Support

Element
<font>YesYesYesYesYes

Differences Between HTML 4.01 and HTML5

The <font> tag is not supported in HTML5.

Compatibility Notes

In our CSS tutorial you can find more information about CSS text color and CSS fonts.

Optional Attributes

AttributeValueDescription
colorrgb(x,x,x)
#xxxxxx
colorname
Not supported in HTML5.
Specifies the color of text
facefont_familyNot supported in HTML5.
Specifies the font of text
sizenumberNot supported in HTML5.
Specifies the size of text

No comments:

Post a Comment