Latest

recent

HTML td rowspan attribute

Example

An HTML table with a cell that spans two rows:
<table width="100%" border="1">
  <tr>
    <th>Month</th>
    <th>Savings</th>
    <th>Savings for holiday!</th>
  </tr>
  <tr>
    <td>January</td>
    <td>$100</td>
    <td rowspan="2">$50</td>
  </tr>
  <tr>
    <td>February</td>
    <td>$80</td>
  </tr>
</table>


Definition and Usage

The rowspan attribute defines the number of rows a cell should span.

Browser Support

The rowspan attribute is supported in all major browsers.
Note: Only Opera supports rowspan="0", which have a special meaning (look below in the "Attribute Values" table).

Syntax

<td rowspan="value">

Attribute Values

Value Description
number Sets the number of rows a cell should span.Note: rowspan="0" tells the browser to span the cell to the last row of the table section (thead, tbody, or tfoot)
HTML td rowspan attribute Reviewed by 1000sourcecodes on 21:39 Rating: 5
Powered by Blogger.