Font Tag in HTML

Font Tag in HTML

The font tag is used to specify the characteristics of the font. Different characteristics include typeface, size, and color. This tag have an opening tag <font> and a closing tag </font>.

Attribute fo Font Tag

Font tag has some important attributes are as follows:

AttributeDescriptions
FaceIt specifies the font of the text. The possible values are “Arial”, “Arial Black”, “Time New Roman” and “MS sans Serif” etc.
SizeIt specifies the font size of the text. It can be from 1 to 7. The default size is 3. The size an also be given as relative to the default size. The size 1 displays 10pt and so on.
ColorIt specifies the color of the text. It can be given as a color name or hexadecimal value of the color.



The following tables show the color name and its hexadecimal value:

ColorHexadecimal ValueColorHexadecimal Value
Red#FF0000Gray#808080
Green#00FF00Dark Red#800000
Blue #0000FFDark Green#008000
White#FFFFFFYellow#FFFF00
Black#000000

Example of Font Tag

<html>
  <head>
     <title>wuexerice</title>
  </head>
  <body>
    <font Size=+2 face=”Verdana”> this text face is Verdana</font><br>
    <font face=”Arial”>this text face is Arial</font>
  </body>
</html>

Output

font tag

Reference

If you want to learn more about HTML then visit the official website: Visit

Visit the HTML tutorial list. And make strong your HTML concept. Click here. wuschools.com is always written about the HTML concept for the HTML lover. Ang writes about how HTML makes your life easy if you are a web site developer. We help you to continue your learning.

This Post Has 2 Comments

  1. Avatar

    The font tag is deprecated in html5…

    1. Avatar

      no, we cannot say that HTML tags are deprecated in html5! if you read the difference between HTML and HTML5 then you batter understand. Read Here

Leave a Reply

Close Menu