Page 70 - CA_165_V2.0_Flipbook
P. 70
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. The default
value of the COLOR attribute in the <FONT> tag is black. If no color is specified, the text will be displayed
in black.
Notes
The COLOR attribute is not supported in HTML5.
Microsoft Edge supports various colours (to see the list of colours with its RGB value, refer colour table of
BGCOLOR attribute). The syntax for using the COLOR attribute with the <FONT> tag 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
The SIZE attribute is not supported in HTML5.
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. The syntax for using the FACE
attribute with the <FONT> tag is as follows:
<FONT FACE = "NAME1", "NAME2", "NAME3">
68 Touchpad Computer Applications-X

