html tutorial - rowspan Attribute in HTML - html5 - html code - html form




Rowspan attribute in html

Learn html - html tutorial - Rowspan attribute in html - html examples - html programs

  • The rowspan attribute is used to specify the no of rows to be span in table.

Syntax for rowspan attribute in HTML:

<td rowspan="number">

Applies To:

Elements Attribute
<td> rowspan
<th> rowspan

rowspan Attribute Values:

Value Description
number Specifies the number of rows a cell should span.

Sample Coding for rowspan Attribute in HTML:

Tryit<!DOCTYPE html>
<html>
    <head>
        <title>Wikitechy rowspan attribute</title>
    </head>
    <body>
        <table border ="1">
            <tr>
                <th>Wikitechy</th>
                <th>Content</th>
            </tr>
            <tr>
                <td>HTML</td>
                <td rowspan ="2">Tutorials</td>
            </tr>
            <tr>
                <td>CSS</td>
            </tr>
        </table>
    </body>
</html>

Code Explanation for rowspan Attribute in HTML:

rowspan Attribute Code Explanation

  1. rowspan attribute used to specifies that the no of rows to be combined.

Output for rowspan Attribute in HTML:

rowspan Attribute Output

  1. The table shows the two row cells combined into one.

Browser Support for rowspan Attribute in HTML:

Yes Yes Yes Yes Yes

Related Searches to rowspan attribute in html