Page 120 - TP_iPlus_V2.1_Class7
P. 120
Using Color Property
The color property is used to specify the text colour. For example:
<style>
table, th, td
{
border:2px;
border-style:solid;
border-color:green;
background-color:orange;
color:blue;
}
</style>
Attributes of the <TD> Tag
Following are the attributes used to present the cell or table data in more effective manner:
• ROWSPAN: The ROWSPAN attribute applies when a cell is extended for more than one row,
that is, the cell spans for 2 or more rows instead of 1 as shown in below table.
Here, the cell “Sports” is taking a span of 3 rows and “Martial Arts” is taking a span of 2 rows.
Example for using ROWSPAN attribute is:
<TD ROWSPAN="3">
Category Types
Badminton
Sports Football
Basketball
Judo
Martial Arts
Karate
118
iPlus (Ver. 2.1)-VII

