HTML Font Tag

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:-…

1 min read

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

Khushal

Welcome to my corner of the web! I'm Khushal Tank, a passionate web developer and the author behind MyProgramming.com. With a robust background in PHP, Webflow, HTML, CSS, and JavaScript, I've dedicated myself to crafting seamless, interactive, and visually appealing websites.

Leave a Reply

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