html Tr Tag

In the html <tr> tag is used to identify row in the html table and which tag includes more <th> and <td> tags.

In the html optional attributes are align,bgcolor,valign,charoff and char and standard attributes are classname, dir, id, language_cod, xml:lang language_code and style_definition .

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