The <font> tag is used to add style, size, and color to the text on your site.
Use the size, color, and face attributes to customize your fonts. Use a <basefont>
tag to set all of your text to the same size, face, and color.
The <font> tag in HTML is deprecated. It is supposed to be removed in a future version of HTML.
Even if a lot of people are using it, you should try to avoid it, and use styles instead.
The HTML <font> Tag
This tag is used to add style, size, and color to the text on your site.
Use the color, size, and face attributes to customize your fonts. Use a <basefont>
tag to set all of your text to the same size, face, and color.
<p>
<font size="2" face="Verdana">
This is a paragraph.
</font>
</p>
<p>
<font size="4" face="Times" color="Red">
This is another paragraph.
</font>
</p>
O/P:
This is a paragraph.
This is another paragraph.
Font Attributes
Attribute
Example
Purpose
size="number"
size="2"
Defines the font size
size="+number"
size="+1"
Increases the font size
size="-number"
size="-1"
Decreases the font size
face="face-name"
face="Times"
Defines the font-name
color="color-value"
color="#eeff00"
Defines the font color
color="color-name"
color="red"
Defines the font color
Share And Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
Keywords:html fonts codes, cool html fonts, html fonts list, html safe fonts