Html 5 Tr Tag

In the html5 <tr> tag is used to identify row in the html table and which tag includes more <th> and <td> tags. In the html5 <tr> attributes are not support the previous version 4.01 attributes.

Syntax:

<table>
  <tr> ... </tr>
</table>

Example Code

<table>
  <tr>
    <td> First Row Cell 1 </td>
    <td> First Row Cell 2 </td>
  </tr>
  <tr>
    <td> Second Row Cell 1 </td>
    <td> Second Row Cell 2 </td>
  </tr>
</table>

Out Put:



First Row Cell 1 First Row Cell 2
Second Row Cell 1 Second Row Cell 2




Content