You are here: Reference > HTML > attributes > rowSpan (td, th)

rowSpan attribute (td, th)

Browser support:
Specifies how many rows high a table cell should be.
This attribute is useful if you want to enable a cell element to extend beyond its contents into multiple lines of the table.
JavaScript page for this attribute: rowSpan. You can find other example(s) there.

Possible values:

Integer that sets the number of rows to span.
Default: this attribute has no default value.

Example HTML code 1:

This example illustrates the use of the rowSpan attribute:
<table border="3px">
        <td id="myTData" rowspan="4">Fruits</td>
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content