rowSpan attribute (td, th)
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"> <tr> <td id="myTData" rowspan="4">Fruits</td> <td>Pear</td> <td>35.21</td> </tr> <tr> <td>Peach</td> <td>23.12</td> </tr> <tr> <td>Apple</td> <td>12.45</td> </tr> <tr> <td>Cherry</td> <td>14.56</td> </tr> </table> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
Related pages:
External links:
User Contributed Comments