HTML DOM THead Object


THead Object

The THead object represents an HTML <thead> element.

Access a THead Object

You can access a <thead> element by using getElementById():

Example

const element = document.getElementById("myTHead");
Try it Yourself »

Create a THead Object

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

Example

const element = document.createElement("THEAD");
Try it Yourself »


THead Object Properties

Property Description
align Not supported in HTML5. Use style.textAlign instead.
Sets or returns the horizontal alignment of the content inside the thead element
ch Not supported in HTML5.
Sets or returns an alignment character inside the thead element
chOff Not supported in HTML5.
Sets or returns the horizontal offset of the ch property
vAlign Not supported in HTML5. Use style.verticalAlign instead.
Sets or returns the vertical alignment of the content within a thead element

Standard Properties and Events

The THead object also supports the standard properties and events.


Related Pages

HTML tutorial: HTML Tables

HTML reference: HTML <thead> tag


Copyright 1999-2023 by Refsnes Data. All Rights Reserved.