HTML rowspan attribute
Example
The following HTML table contains a header cell that spans three rows:
<table 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
tableTry it »
(More examples are at the bottom of the page)
Browser support
| property | |||||
|---|---|---|---|---|---|
| rowspan | Yes | Yes | Yes | Yes | Yes |
**Note:** Only Firefox and Opera support rowspan="0", which has a special meaning (see the "attribute value" table below).
Definition and Usage
The rowspan attribute defines the number of rows a header cell should span.
Differences between HTML 4.01 and HTML5
none.
Syntax
Usage of rowspan="0"This example only applies to the Firefox and Opera browsers; it demonstrates the use of rowspan="0".
HTML tag