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

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


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.