The HTML rowspan attribute
Quick answer
The HTML rowspan attribute makes a table cell span multiple rows. It is used on the <td> and <th> elements.
Overview
Syntax
<td rowspan="2">Spans two rows</td>
Values
| Value |
|---|
| A non-negative integer (0 means span to the end of the section). |
Example
<style>table{border-collapse:collapse}th,td{border:1px solid #cbd5e1;padding:6px 10px}</style>
<table><tr><td rowspan="2">Tall</td><td>1</td></tr><tr><td>2</td></tr></table>
Best practices
Frequently asked questions
What does the rowspan attribute do?
Spans a table cell across rows.