Friday 4 November 2016

HTML Fonts

The <font> tag in HTML is deprecated. It is supposed to be removed in a future version of HTML.

i) The HTML <font> Tag: With HTML code like this, you can specify both the size and the type of the browser output.

E.g.: <p>
<font size="2" face="Verdana">
This is a paragraph.
</font>
</p>
<p>
<font size="3" face="Times">
This is another paragraph.
</font></p>

ii) 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

No comments:

Post a Comment