>

Articles → HTML → font tag in HTML

font tag in HTML






Purpose





Syntax


<font size="" color="" face="">Text</font>



Example


<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta charset="utf-8" />
    <title></title>
  </head>
  <body>
    <form>
      <font size="10" color="red" face="Verdana">This is the sample text</font>
    </form>
  </body>
</html>



Output


Picture showing the output of font tag in html

Click to Enlarge


Browser support


Internet ExplorerFirefoxChromeSafariOperaEdge
YesYesYesYesYesYes



Posted By  -  Karan Gupta
 
Posted On  -  Thursday, July 20, 2017

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250