By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

HTML Tr Tag

Reference on the Tr Element of HTML. Including its useful example, and a list of allowed attributes.

Edited: 2014-12-28 07:11

The tr element, is used inside the table element, as a container for table cells and header cells. Each tr element, creates a row of table cells.

Attributes

Attribute:Value:Description:
AttrsOther AttributesCommon, Event, I18n
cellhalignleft|center|right|justify|charhorizontal alignment in cells
cellvaligntop|middle|bottom|baselinevertical alignment in cells

Example

<table summary="Example of how to use the tr Element">
 <tr>
  <td> Cell 1 </td><td> Cell 2 </td><td> Cell 3 </td>
 </tr>
 <tr>
  <td>The first cell</td><td>The second cell</td><td>The third cell</td>
 </tr>
</table>

Brugbart Vision!