CKTIS / HTML
rowspan — spanning a cell across rows
The rowspan attribute specifies how many table rows a td or th cell occupies. A value of 0 means the remaining rows of its group.
Version: WHATWG HTML Living Standard; index snapshot date recorded separately
Syntax
<td rowspan="n">...</td>
<th rowspan="n">...</th>rowspan on td or th specifies the number of occupied rows, including the starting row. rowspan="2" spans two rows; colspan concerns columns.
Allowed values are integers from 0 to 65534. An absent attribute or parsing failure means 1; larger values are capped at 65534. 0 spans all remaining rows of the current row group (thead, tbody, or tfoot), not the entire table.
Cells must not overlap. In subsequent rows, omit the cell in the occupied column. The DOM property is named rowSpan, with an uppercase S.
Examples
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>rowspan example</title>
<table>
<caption>Team assignments</caption>
<thead>
<tr><th scope="col">Team</th><th scope="col">Member</th></tr>
</thead>
<tbody>
<tr><td id="team" rowspan="2">Alpha</td><td>Ada</td></tr>
<tr><td>Lin</td></tr>
</tbody>
</table>
</html>Result
Team assignments
Team | Member
Alpha | Ada
| LinThe displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.