Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM td/th rowSpan property

td/th rowSpan property

td/th Object Reference td/th object


Definition and Usage

The rowSpan property sets or returns the number of rows a cell spans.

Syntax

Set the rowSpan property:

tdObject.rowSpan="

number

"

or

thObject.rowSpan="

number

"

Return the rowSpan property:

tdObject.rowSpan

or

thObject.rowSpan

Tip: The rowSpan property has no default value.

Value Description
number Defines the number of rows a cell spans

Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the rowSpan property


Example

Example

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

Runoob Tutorial(runoob.com)

    

        

        

    

    

        

        

    

    

        

        

    

Month Savings
January $100.00
February $10.00
March $80.00

Try it »


td/th Object Reference td/th object