Easy Tutorial
❮ Jsref Regexp Nfollow Prop Audio Duration ❯

TableHeader rowSpan Attribute

TableHeader Object

Example

Change the number of rows a cell spans:


Definition and Usage

The rowSpan property sets or returns the value of the rowspan attribute.

The rowspan attribute specifies the number of rows a table cell can span.

Tip: Use the colSpan property to set or return the value of the colspan attribute.


Browser Support

All major browsers support the rowSpan property.


Syntax

Return the rowSpan property:

Set the rowSpan property:

Property Values

Value Description
number Specifies the number of rows a cell can span.

Technical Details

| Return Value: | Number, representing the number of rows a table cell can span. | | --- | --- |


More Examples

Example

Return the number of rows a specified table cell can span:

x Output result:


Related Articles

HTML Reference: HTML <th> rowspan Attribute


TableHeader Object

❮ Jsref Regexp Nfollow Prop Audio Duration ❯