Home Tutorial Html Html5 HTML 5 tr Tag, Definition of <tr> tag in html5

 
 

HTML 5 tr Tag, Definition of <tr> tag in html5
Posted on: September 15, 2010 at 12:00 AM
Advertisement
In this discussion, We will introduce about the use of <tr> tag in html5.

HTML 5 tr Tag, Definition of <tr> tag in html5

In this discussion, We will introduce about the use of <tr> tag in html5. This <tr> tag is used for defining the row of cells in a table. The<tr> tag is used within the <table> tag and can have more than one <td> tag. This tag must have opening and closing tags.

Declaration Syntax:

The declaration of this tag is as:

<tr> Table Data </tr>

This tag don't have any specific attributes 

Example: tr_tag.html

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

Output:

Download This Example

Advertisement

Related Tags for HTML 5 tr Tag, Definition of <tr> tag in html5:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: September 15, 2010

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com