Page 114 - iPro_trackGPT_V5_Class7
P. 114
border-style:solid;
border-color:green;
border-spacing:15px;
padding:15px
}
</style>
Table : Student
Roll No. Name Grade Gender
1 Aarav B M
2 Gauransh A M
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
112 TrackGPT iPRO (V5.0)-VII

