Dom Obj Tablerow
# HTML DOM tr Object
* * *
## tr Object
The tr object represents a row in an HTML table.
A tr object is created when a `` tag appears in an HTML document.
* * *
## tr Object Collections
**W3C:** W3C tag.
| Collection | Description | W3C |
| :--- | :--- | :--- |
| (#) | Returns a collection of all `` and ` ` elements in a table row | Yes |
## tr Object Properties
| Property | Description | W3C |
| :--- | :--- | :--- |
| align | Deprecated. Sets or returns the horizontal alignment of the data in the row. | D |
| bgColor | Deprecated. Sets or returns the background color of a table row. | D |
| (#) | Sets or returns the alignment character for cells in a row. | Yes |
| (#) | Sets or returns the offset of the alignment character for cells in a row. | Yes |
| height | Deprecated. Sets or returns the height of a table row. Use [style.height](#) instead. | D |
| (#) | Returns the position of a row in the table. | Yes |
| (#) | Returns the position of a row in the tBody, tHead, or tFoot. | Yes |
| (#) | Sets or returns the vertical alignment of the data in the row. | Yes |
## tr Object Methods
| Method | Description | W3C |
| :--- | :--- | :--- |
| [deleteCell()](#) | Deletes a specified cell from a table row. | Yes |
| [insertCell()](#) | Inserts an empty cell into a table row at a specified position. | Yes |
## Standard Properties and Events
The tr object also supports standard (#) and (#).
YouTip