td/th rowSpan property
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





All major browsers support the rowSpan property
Example
Example
The following example changes the number of rows a cell spans:
| Month | Savings |
|---|---|
| January | $100.00 |
| February | $10.00 |
| March | $80.00 |
Try it »
td/th object