The following HTML code shows an Example of using Font Tag in HTML.

Basically, the <font> tag specifies the font size, font face, and font color. Accordingly, it has the attributes like size, face, and color to change these aspects of the font. However, it is an HTML 4 tag. Therefore, HTML 5 doesn’t support it. Instead we need to use the style attribute with HTML 5.

<html>
 <head>
	<title>Font Tag Example</title>
 </head>
 <body>
    <center><h1>Font Tag Demo</h1></center>
    <div>
       <p><font size="1" face="Arial" color="#fd1122">programmingempire.com</font></p>

       <p><font size="2" face="Serif" color="#aa4488">programmingempire.com</font></p>

       <p><font size="3" face="courier" color="#1123d2">programmingempire.com</font></p>

       <p><font size="4" face="Arial Black" color="#44dd55">programmingempire.com</font></p>

       <p><font size="5" face="Times New Roman" color="#ff5533">programmingempire.com</font></p>

       <p><font size="6" face="Comic Sans MS" color="#1212dd">programmingempire.com</font></p>

       <p><font size="7" face="Forte" color="#aa5511">programmingempire.com</font></p>

       <p><font size="8" face="Verdana" color="#9122aa">programmingempire.com</font></p>
    </div>
 </body>
</html>

Output

Demonstrating an Example of using Font Tag in HTML
Demonstrating an Example of using Font Tag in HTML

Further Reading

HTML Examples for Beginners

Introduction to Django Framework and its Features

Django Practice Exercise

Installing Django on Windows

Examples of Array Functions in PHP

Basic Programs in PHP

Registration Form Using PDO in PHP

Inserting Information from Multiple CheckBox Selection in a Database Table in PHP

programmingempire

princites.com