HTML DOM THead Object

THead Object

The THead object represents the HTML <thead> element.

Access THead Object

You can use getElementById() to access the <thead> element:

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

Try it yourself

Create THead Object

You can use the document.createElement() method to create a <thead> element:

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

Try it yourself

THead Object Properties

Properties Description
align

HTML5 does not support.Please use instead. style.textAlign.

Sets or returns the horizontal alignment of the content within the thead element.

ch

HTML5 does not support.

Sets or returns the alignment character within the thead element.

chOff

HTML5 does not support.

Sets or returns the horizontal offset of the ch attribute.

vAlign

HTML5 does not support.Please use instead. style.verticalAlign.

Sets or returns the vertical alignment of the content within the thead element.

Standard Properties and Events

THead Object Supports StandardsPropertiesAndEvents.

Related Pages

HTML Tutorial:HTML Table

HTML Reference Manual:HTML <thead> Tag