Page 111 - Plus V4 with Adobe class 7
P. 111
background-color:orange;
color:blue;
}
</style>
The <TD> Tag
The <TD> tag stands for Table Data. It is used to fill the data in the table cells. Following are the attributes
used to present the cell or table data in more effective manner:
ROWSPAN: The Rowspan attribute applies when a single cell is extended for more than a single 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
COLSPAN: The Colspan attribute applies when a single cell is extended to more than a single column,
that is, the cell spans for 2 or more columns instead of 1 as shown in table below:
Roll No. Name Marks Grade
First Last
Here, “Name” cell is taking a span of 2 columns.
#Lists and Tables in HTML5 109

