HTML < font > Tag - Learn About Website | DaddyFile

0

HTML <font> Tag. Not Supported in HTML5.

Example

Specify the font size, font face and color of text:

<!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>

<p><strong>Note:</strong> The font element is not supported in HTML5. Use CSS instead.</p>

</body>
</html>

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.

Differences Between HTML 4.01 and HTML5

The <font> tag is not supported in HTML5.

Post a Comment

 
Top