Page 76 - CA_165_V2.0_Flipbook
P. 76
FACE Attribute
This attribute of <BASEFONT> tag is used to assign a new font face (that becomes the default font) for
the text of entire HTML document. The default value of FACE attribute is "Times New Roman". The syntax
for using the FACE attribute with the <BASEFONT> tag is as follows:
<BASEFONT FACE= "FONT NAME">
For example:
<BASEFONT FACE= "IMPACT">
Notes
The FACE attribute is not supported in HTML5.
The following HTML code uses the <BASEFONT> tag and its attributes to set the font, color, and size of
the text:
<HTML>
<HEAD>
<TITLE> Using Basefont & its Attributes</TITLE>
</HEAD>
<BODY>
<BASEFONT FACE="IMPACT" COLOR="BLUE" SIZE="5">
ORANGE EDUCATION
</BODY>
</HTML>
<HTML>
<HEAD> The output of the preceding HTML code is as follows:
<TITLE> Using BASEFONT & its Attributes </TITLE>
</HEAD> Base Font set as:
<BODY> Color - BLUE, Size - 5
<BASEFONT FACE= “Impact”COLOR= “BLUE” SIZE= 5>
ORANGE EDUCATION Face - Impact
</BODY>
</HTML>
ORANGE EDUCATION
The following table lists all the attributes of the <BASEFONT> tag, their possible values, and a description
of their purpose:
Attribute Name Value Description
FACE Font name Specifies the font family for the text.
Not supported in HTML5
SIZE Numeric value (e.g., 1 to 7) Specifies the size of the text, relative to the
base font size.
Not supported in HTML5
COLOR Colour name or hexadecimal Specifies the color of the text.
value Not supported in HTML5
74 Touchpad Computer Applications-X

