The <tr> Tag in HTML 5
The <tr> tag is used to create a row in an HTML table. A series of th table heading cell elements and td table data cell elements are used to divide each table row into cells.
In the following example, there are two rows in the table header, two more rows in the table body and one row in the table footer, for a total of five tr elements in all.
Multiple Column Heading | ||
---|---|---|
First Column Heading | Second Column Heading | |
This is an example of an HTML table footer. | ||
Row 1 | Row 1 Column 1 | Row 1 Column 2 |
Row 2 | Row 2 Column 1 | Row 2 Column 2 |
This is an actual working demo of the table row example code below. (Do View Source to verify that this page is using the HTML 5 DOCTYPE. You can also verify it is Valid HTML 5 using the HTML Validator. Try using it to validate URLs with HTML examples from other places that claim to be HTML 5 web sites!)
See the tutorial on Creating HTML Tables for full details on how to create an HTML table using the HTML table tags together.