HTML <font> Tag (not supported in HTML5).

The use of the HTML <font> Tag defines the text within it as size, color, and face, or text in HTML output.

Note:- Do not use the HTML <tag> Tag because it is deprecated in HTML5, so you can use the CSS properties to change the font size, face, color, etc.

Example:-

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>HTML font Tag</title>
</head>

<body>
  <h1>HTML font Tag Example</h1>

  <p>This is normal text without any font styling</p>  
  <p>  
    <font color="blue">Text with normal size and default face</font>  
  </p>  
  <p>  
    <font size="5" color="green">Text with Increased size and default face</font>  
  </p>  
  <p>  
    <font color="red" face="cursive">Text with Changed face</font>  
  </p>  
</body>
</html>

Output:-


Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *