Change the number of rows a cell should span:
The rowSpan property sets or returns the value of the rowspan attribute.
The rowspan attribute specifies the number of rows a table cell should span.
Tip: Use the colSpan property to set or return the value of the colspan attribute.
The rowSpan property is supported in all major browsers.
Return the rowSpan property:
Set the rowSpan property:
Value | Description |
---|---|
number | Specifies the number of rows a cell should span |
Return Value: | A Number, representing the number of rows a table cell should span |
---|
Return the number of rows a specific table cell should span:
The result of x will be:
HTML reference: HTML <th> rowspan attribute