asp.net.ph

Skip Navigation Links

TR Element | TR Object

Language References


Denotes a row in a table.HTML 3.2, 4, 4.01, 5

HTML Syntax

Remarks

The TR element specifies a table row. TR elements can only be used within a TABLE element.

Each TR element can contain TH elements, which indicate table headings, and TD elements, which indicate the table data cells.

Although the W3C specifies that TR end tags are optional and may be omitted, it is safer to always close table rows, as not all browsers support this recommendation, and may produce unexpected results.

Members

TR Members

Example

This example shows a table with two rows.

<table>
   <tr><td>This is the first row.</td></tr>
   <tr><td>This is the second row.</td></tr>
</table>
See Also

TABLE   TD   TH   Using Tables



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note