HTML <th> rowspan Attribute
Example
<table>
<tr>
<th rowspan="2">Heading</th>
<th>Heading</th>
</tr>
<tr>
<td>Table data</td>
</tr>
<tr>
<td>Foot data</td>
<td>Foot data</td>
</tr>
</table>
Meaning
The rowspan attribute takes a numeric value that indicates how many rows high a table cell should span.
This attribute is useful in defining tables with cells of different heights.
Its default value is 1.
Standard Syntax
<th rowspan="number">...</th>
Advertisement
Attribute Values
| Value | Description |
|---|---|
| number | The number of rows respectively that the cell is to span. |