HTML Attributes
HTML rowspan attribute
Makes a table cell occupy multiple rows. Default is 1; zero extends the cell to the remaining rows in its row group. Avoid overlaps in the resulting grid. Applicable elements include: <td>, <th>. Check each element’s value rules.
Formal Syntax & Structure
html syntaxhtml
rowspan="2"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| rowspan | non-negative integer | Makes a table cell occupy multiple rows. Default is 1; zero extends the cell to the remaining rows in its row group. Avoid overlaps in the resulting grid. |
Working Example
Example Snippethtml
<table> <tr> <th rowspan="2" scope="rowgroup">Fruit</th> <td>Apple</td> </tr> <tr> <td>Pear</td> </tr></table>