HTML <th> rowspan attribute
HTML <th> tag
Example
An HTML table with a header cell that spans three rows:
<table width="100%" border="1">
<tr>
<th>Month</th>
<th>Savings</th>
<th rowspan="3">Savings for holiday!</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</table> |
Try it yourself! (more examples at the bottom of this page)
|
Definition and Usage
The rowspan attribute defines the number of rows a header cell should
span.
Browser Support

The rowspan attribute is supported in all major browsers.
Note: Only Opera supports rowspan="0", which have a
special meaning (look below in the "Attribute Values" table).
Syntax
Attribute Values
Value |
Description |
number |
Sets the number of rows a header cell should span. Note:
rowspan="0" tells the browser to span the cell to the last row of
the table section (thead, tbody, or tfoot) |
Try-It-Yourself Demos
Use of
rowspan="0"
This example will only work in Opera, and it demonstrates rowspan="0".
HTML <th> tag
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|