Home >>HTML Tutorial >HTML Font

HTML Font

HTML Font Tag

Font tag is used to text specification. Face attribute of <font> tag is used to set the font of the text. Size attribute is used to specify the size of text. Color attribute of <font> tag is used to specify the color of text.
Eg of font color property

<font color="green">

welcome user

</font>

Output

welcome user

in the above example we set color value( green) ,the statement (welcome user) written between the tag will be green because the value of color is green.


Change the font face of the text

<font color="green" face="Calibri">

welcome user

</font>

Output

welcome user

in the above example we set face value("calibri") with color value("green") and output of the text statement(welcome user) with calibri face.


Change the font size of the text

<font color="green" face="Calibri" size="+2">
welcome user 
</font>
Output welcome user

in the above example if we set the size with (value=+2). it will increase the size of text statement. Maximum font size can set "+7"