HTML | <th> rowspan Attribute
The HTML <th> rowspan Attribute is used to specify how many numbers of header row cell will span.
Syntax:
<th rowspan="number">
Attribute Value:
- number: It contains the numeric value which specifies the number of header row cell should span.
Example:
<!DOCTYPE html> <html> <head> <title> HTML th rowspan Attribute </title> </head> <body> <h1>GeeksforGeeks</h1> <h2>HTML th rowspan Attribute</h2> <table border="1" width="500"> <tr> <th>NAME</th> <th rowspan="3">AGE</th> <th>BRANCH</th> </tr> <tr> <td>BITTU</td> <td>CSE</td> </tr> <tr> <td>RAKESH</td> <td>EC</td> </tr> </table> </body> </html> |
chevron_right
filter_none
Output:

Supported Browsers: The browser supported by HTML <th> rowspan attribute are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Safari
- Opera
Recommended Posts:
- HTML | <td> rowspan Attribute
- HTML | rowspan Attribute
- HTML | DOM TableData rowSpan Property
- HTML | <img> src Attribute
- HTML | for Attribute
- HTML | low Attribute
- HTML | max attribute
- HTML | rel attribute
- HTML | value Attribute
- HTML src attribute
- HTML | <li> value Attribute
- HTML | <a> rel Attribute
- HTML | <map> name Attribute
- HTML | alt attribute
- HTML | <img> alt Attribute
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



