Easy Tutorial
❮ Prop Style Boxsizing Met Win Resizeby ❯

td/th rowSpan Attribute


Definition and Usage

The rowSpan attribute sets or returns the number of rows a cell should span.

Syntax

Setting the rowSpan attribute:

Returning the rowSpan attribute:

Note: The rowSpan attribute has no default value.

Value Description
number Defines the number of rows a cell should span

Browser Support

All major browsers support the rowSpan attribute.


Example

The following example changes the number of rows a table cell spans:


❮ Prop Style Boxsizing Met Win Resizeby ❯