<

HTML <font> Tag

The <font> tag is not supported in HTML5. Use CSS instead.The <font> tag specifies the font face, font size, and color of text.

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


Example



<!DOCTYPE html>
<html>
<body>

<p><font size="3" color="red">This is some text!</font></p>

<p><font size="2" color="blue">This is some text!</font></p>

<p><font face="verdana" color="green">This is some text!</font></p>

</body>
</html>

















© copyright 2017-2022 Completedone pvt ltd.