Font Tag

FONT TAG IN HTML

The FONT tag in HTML is used to specify the size, color, and font of text it encloses.
The FONT tag is a Container element, it has both an ON tag and OFF tag.



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


Output:
This is some text!
This is some text!
This is some text!


Note: The font element is not supported in HTML5. Use CSS instead.



Comments

Popular posts from this blog

Introduction and Format of HTML

Headings In HTML

Strong big and small tags in html