Page 56 - TP_Prime_V2.2_Class7
P. 56
border-color:green;
border-spacing:15px;
padding:15px
}
</STYLE>
Prime (Ver. 2.2)-VII Roll No. Name Grade Gender
Table : Student
2 1 Aarav B M
Gauransh
A
M
54 3 Himakshi A F
4 Rakshit B M
Using Background-color Property
The background-color property is used to specify the colour for the background in a table
on the web page. You can apply colour in a cell, row or entire table. For example:
<STYLE>
TABLE, TH, TD
{
border:2px;
border-style:solid; Table : Student
Roll No. Name Grade Gender
border-color:green;
1 Aarav B M
background-color:orange;
2 Gauransh A M
} 3 Himakshi A F
4 Rakshit B M
</STYLE>
Using Color Property
The color property is used to specify the text colour. For example:
<STYLE>
TABLE, TH, TD
{

