Page 61 - CA 165 ver 1.0 Class 10
P. 61
COLOR Attribute
The COLOR attribute of <FONT> tag is used to set the colour of the text which may be of any font style.
The colour name or Hexadecimal (HEX) RGB values can be included to set the desired colour.
Internet Explorer supports various colours (to see the list of colours with its RGB value, refer colour table
of BGCOLOR attribute). Syntax to use the COLOR attribute is as follows:
<FONT COLOR= “Color Name” or “Color Value” > Text </FONT>
For example:
<FONT COLOR=“RED”>THIS IS ORANGE PUBLISHERS </FONT>
SIZE Attribute
The SIZE attribute of <FONT> tag is used to set or change the size of the text. It can be set using absolute
or relative size values.
Absolute Font Size Value
There are seven absolute (fixed) sizes of text from 1 to 7. The default size of font of text is three (3), which
is same as the size of regular paragraph text.
Relative Font Size Value
The default size of font can be changed i.e., font size can be increased or decreased. The relative font size
changes are indicated by either a plus (+) or minus (-) sign preceding the value of size attribute.
<FONT SIZE = +1> (means one size larger than the default size i.e. equal to 4).
<FONT SIZE = -1> (means one size smaller than the default size i.e. equal to 2).
Notes
Each virtual size is successively 20% larger or smaller than the preceding or next value of font size. The
default font size is 3. Thus font size 4 is 20% larger than font size 3,font size 5 is 40% larger than font
size 3 and so on. Similarly, font size 2 is 20% smaller than font size 3 and font size 1 is 40% smaller
than the font size 3.
FACE Attribute
The FACE attribute of <FONT> tag is used to change the typeface of a block of text. The text typed within
the blocks of <FONT> tag can be set with the available face attributes. Syntax to use the FACE attribute
is as follows:
<FONT FACE = “NAME1”, “NAME2”, “NAME3 ”>
Thus, a user can specify a list of font names, separated by commas and enclosed within quotes. If the first
choice of font is available in the system, the browser uses it, otherwise it tries the second choice, then the
third and so on. If the given attribute of the font is not available in the computer, then the browser accepts
the default font of the system. For example:
<FONT FACE=“TIMES NEW ROMAN”, “ARIAL”, “COMIC SANS MS”> ORANGE EDUCATION
</FONT>
Introduction to HTML 59

