HTML/Elements/tr

From Web Education Community Group
< HTML‎ | Elements
Jump to: navigation, search

<tr>

The <tr> element represents a row of cells in a table.

HTML Attributes

See global attributes.


Examples

Example A

[try it]

<table>
  <caption>
    <p>table 1. Sample table</p>
  </caption>
  <tr>
    <td>1</td>
    <td>2</td>
  </tr>
  <tr>
    <td>3</td>
    <td>4</td>
  </tr>
</table>

Tr01.png

HTML Reference

The HTML5 specification defines the <tr> element in 4.9.8 The tr element.