HTML and tr;tags
The label defines a row of cells in an HTML table that should appear in pairs, see the following example:A simple HTML table with two columns and two rows:
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
Try it out . . .
(See bottom of page for more examples)
Browser support
All major browsers support the hashtag.
Label definition and instructions for use
The label defines the rows in the HTML table.
An element contains one or more elements.
The difference between HTML 4.01 and HTML5
In HTML 5, any properties of the label in HTML 4.01 are not supported.
Property
Attributes | value | describe |
---|---|---|
align |
right
left center justify char |
HTML5 does not support. Define the content alignment of the form of form. |
bgcolor |
rgb(x,x,x)
#xxxxxx colorname |
HTML5 does not support.HTML 4.01 has been discarded. The background color of the table is specified. |
char | character | HTML5 does not support. The text is regulated based on which character is logged. |
charoff | number | HTML5 does not support. Specify the offset of the first alignment character. |
valign |
top
middle bottom baseline |
HTML5 does not support. Specify the vertical alignment of the content in the table line. |
Global properties
Labels support the global properties of HTML.
The event property
The tag supports the event properties of HTML.
Try it - instance
The title in the table
This example shows how to display the table title.
Empty cell
This example shows how to use to work with cells without content.
Table with title
This example shows a table with a title.
The label in the table
This example shows how to display elements within other elements.
Table cells that span rows or columns
This example shows how to define table cells that span rows or columns.
Related articles
HTML tutorial: HTML tables
HTML DOM Reference Manual: Tr Object