The rowspan attribute on <td> or <th> makes a cell span multiple rows vertically. Default is 1. Values above 65534 are clipped to 65534.
Omit the cells that the span already covers. Pair with colspan for horizontal merges, and use scope or headers when headers need clearer associations. Not the same as textarea rows.
Baseline · Widely available.
Not deprecated and not experimental. Standard table attribute across modern browsers.
Syntax
HTML Syntax
syntax.html
<td rowspan="number"> … </td>
Same form on <th>. In JavaScript: cell.rowSpan = 3 (capital S).
Use scope or headers so assistive tech can still associate cells with labels.
Compatibility
Browser Support
rowspan is an HTML table attribute on <td> and <th>. It is not a Node.js, Deno, or Bun API.
✓ Baseline · Widely available
rowspan
Supported everywhere modern tables work. Keep spans from overlapping for predictable layouts.
98%Global support (approx.)
Google ChromeYes
Full support
Mozilla FirefoxYes
Full support
Apple SafariYes
Full support
Microsoft EdgeYes
Full support
OperaYes
Full support
Samsung InternetYes
Full support
Internet ExplorerYes
Supported
rowspanWidely supported
Bottom line: Safe to use. Count free grid slots carefully when combining with colspan.
Remember
Key Takeaways
Role: span a td/th down across rows (default 1).
Omit covered cells in rows below the span.
Pair with colspan for 2D blocks when the grid allows.
Not textarea rows — different attribute.
One line:rowspan merges a table cell downward across multiple rows.
Frequently Asked Questions
On td or th, rowspan makes the cell span that many rows vertically. The default is 1 (a normal single row).
Only table cells: td and th. It is not the textarea rows attribute.
A non-negative integer. Default is 1. Values greater than 65534 are clipped to 65534. Special value 0 extends to the end of the current thead, tbody, or tfoot section.
rowspan merges across rows (vertical). colspan merges across columns (horizontal). You can use both on one cell when the grid allows it.
No. Do not build a table where spans cover the same grid slot. Leave out the cells that the span already covers.
Use cell.rowSpan = 3 (capital S in the DOM property) or setAttribute("rowspan", "3").