A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/html/html-th-rowspan-attribute/ below:

HTML < rowspan> Attribute - GeeksforGeeks

HTML < rowspan> Attribute

Last Updated : 17 Apr, 2025

 The HTML <th> rowspan Attribute is used to specify how many numbers of header row cell will span. 

Syntax: 

<th rowspan="number">

Attribute Value:  

Example:  

html
<!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>

Output:  

Supported Browsers: The browser supported by HTML <th> rowspan attribute are listed below:  



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4