Page 56 - CA 165 ver 1.0 Class 10
P. 56
For example:
<BODY BGCOLOR = “Aqua”> or <BODY BGCOLOR = “#00FFFF”>
In the above examples, both the values set the background colour as aqua on the screen i.e., in the
BGCOLOR attribute, either of the two i.e., colour name or HEX RGB values are accepted.
Colour appears on the background
of the webpage due to <BODY
BGCOLOR = “Aqua”> or <BODY
BGCOLOR = “#00FFFF”> tag.
TEXT Attribute
This attribute is used to set the colour of the text to be displayed in the document. Colour value is set in
the same manner as set in BGCOLOR. By default, the text colour is black, white or grey. Syntax to use the
TEXT attribute is as follows:
<BODY TEXT = “COLOR NAME”>
[OR]
<BODY TEXT =“#RRGGBB”>
For example:
<BODY TEXT = “Red” >
[OR]
<BODY TEXT = “#FF0000”>
54 Touchpad Computer Applications-X

