Dom Obj Tableheader
# HTML DOM TableHeader Object
* * *
## TableHeader Object
The TableHeader object represents an HTML element.
### Accessing a TableHeader Object
You can use getElementById() to access a element:
var x = document.getElementById("myTh"); (#)
**Note:** You can also access the TableHeader object by searching the table's (#) collection.
### Creating a TableHeader Object
You can use the document.createElement() method to create a element:
var x = document.createElement("TH"); (#)
## TableHeader Object Properties
| Property | Description |
| --- | --- |
| (#) | Sets or returns the value of the abbr attribute. |
| align | Not supported in HTML5. Use [style.textAlign](#) instead. Sets or returns the horizontal alignment of the content in a data cell. |
| axis | Not supported in HTML5. Sets or returns a comma-separated list of related data cells. |
| background | Not supported in HTML5. Use [style.background](#) instead. Sets or returns the background image of a data cell. |
| bgColor | Not supported in HTML5. Use [style.backgroundColor](#) instead. Sets or returns the background color of a table. |
| ch | Not supported in HTML5. Sets or returns the alignment character for a data cell. |
| chOff | Not supported in HTML5. Sets or returns the horizontal offset of the ch attribute. |
| (#) | Sets or returns the value of the colspan attribute. |
| (#) | Sets or returns the value of the headers attribute. |
| height | Not supported in HTML5. Use [style.height](#) instead. Sets or returns the height of a data cell. |
| noWrap | Not supported in HTML5. Use [style.whiteSpace](#) instead. Sets or returns whether the content in a cell should wrap. |
| (#) | Sets or returns the value of the rowspan attribute. |
| vAlign | Not supported in HTML5. Use [style.verticalAlign](#) instead. Sets or returns the vertical alignment of the content in a cell. |
| width | Not supported in HTML5. Use [style.width](#) instead. Sets or returns the width of a data cell. |
## Standard Properties and Events
The TableHeader object also supports the standard (#) and (#).
* * *
## Related Articles
HTML Tutorial: (#)
YouTip