HTML 5 tr Tag, Definition 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.

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

Ads