Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML td rowspan attribute

HTML rowspan attribute

HTML td Tag Reference HTML Tag

Example

The following HTML table contains a table cell that spans two rows:

Month Savings Savings for holiday!
January $100 $50
February $80

Try it »

(More examples are at the bottom of the page)


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the rowspan attribute.

**Note:** Only Firefox and Opera support rowspan="0", which has a special meaning (see the "attribute value" table below).


Definition and Usage

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


Differences between HTML 4.01 and HTML5

none.


Syntax

Usage of rowspan="0"
This example only applies to the Firefox and Opera browsers; it demonstrates the use of rowspan="0".


HTML td Tag Reference HTML tag