HTML Tag Reference - HTML tag <font>








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

Browser compatibility

<font> Yes Yes Yes Yes Yes

What's new in HTML5

<font> is deprecated in HTML5.

Attribute

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

Example

<!DOCTYPE html>
<html>
<body>

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

</body>
</html>

Click to view the demo