HTML5 rowspan attribute, Definition of rowspan attribute of <td> tag in html5

In this discussion, We will introduce about the use of rowspan attribute of <td> tag in html5.

 
 

Share on Google+Share on Google+

HTML5 rowspan attribute, Definition of rowspan attribute of <td> tag in html5

Ads

In this discussion, We will introduce about the use of rowspan attribute of <td> tag in html5.

HTML5 rowspan attribute, Definition of rowspan attribute of <td> tag in html5

In this discussion, We will introduce about the use of rowspan attribute of <td> tag in html5. This attribute is used for specifying the number of rows spanned with a cell or table data.

Declaration Syntax:

The declaration of this attribute is as:

<td rowspan="value"> Cell Data </td>

Example: rowspan_attribute.html

<!DOCTYPE html>
<html>
<head>
<title>Example of rowspan attribute</title>
</head>
  <body>Example of <q>rowspan</q> attribute of td tag.<p>
    <table border="1">
                     <tr>
                         <td rowspan="2"> Bikrant</td>
                         <td > Gyan</td>
                         <td> Ankit</td>
                    </tr>
                    <tr>
                        <td> Singh</td>
                        <td> Kumar</td>
                    </tr>
     </table>
  </body> 
</html>

Output:

 

Download This Example

Difference between html4.01 and html5.

Most of the html4.01 attributes are not supported by html5.

Advertisements

Ads

Posted on: September 15, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles