THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM TableHeader Object



TableHeader Object

The TableHeader object speaks to a HTML <th> element.

Access a TableHeader Object

You can get to a <th> component by utilizing getElementById():

var x = document.getElementById("myTh");

Tip: You can likewise get to a <th> component via seeking through the cells gathering of a table row.

Create a TableHeader Object

You can make a <th> component by utilizing the document.createElement() method:

var x = document.createElement("TH");

TableHeader Object Properties

Property Description
abbr Sets or returns the estimation of the abbr attribute
align Not upheld in HTML5. Use style.textAlign instead.
Sets or returns the flat arrangement of the substance in an information cell
axis Not upheld in HTML5.
Sets or returns a comma-isolated rundown of related information cells
background Not upheld in HTML5. Use style.background instead.
Sets or returns the foundation picture of an information cell
bgColor Not upheld in HTML5. Use style.backgroundColor instead.
Sets or returns the foundation shade of a table
cellIndex Returns the situation of a cell in the cells gathering of a table row
ch Not upheld in HTML5.
Sets or returns an arrangement character for an information cell
chOff Not bolstered in HTML5.
Sets or returns the even balance of the ch property
>colSpan Sets or returns the estimation of the colspan attribute
headers Sets or returns the estimation of the headers attribute
height Not bolstered in HTML5. Sets or returns the stature of a information cell
Use style.height instead
noWrap Not bolstered in HTML5. Sets or returns whether the content in a cell can be wrapped
Use style.whiteSpace instead
rowSpan Sets or returns the estimation of the rowspan attribute
vAlign Not upheld in HTML5. Sets or returns the vertical arrangement of the substance inside a cell
Use style.verticalAlign instead
width Not upheld in HTML5. Sets or returns the width of a information cell
Use style.width instead

Related Pages

HTML tutorial: HTML Tables

HTML reference: HTML <th> tag