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

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We don't have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!

We need money to operate the site, and almost all of it comes from our online advertising.

Please add wikitechy.com to your ad blocking whitelist or disable your adblocking software.

×