HTML DOM TBody Object

TBody object

The TBody object represents the HTML <tbody> element.

Access TBody object

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

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

Try it yourself

Create TBody object

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

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

Try it yourself

TBody object properties

Properties Description
align

Not supported in HTML5.Please use instead. style.textAlign.

Set or return the horizontal alignment style of the content within the tbody element.

ch

Not supported in HTML5.

Set or return the alignment character within the tbody element.

chOff

Not supported in HTML5.

Set or return the horizontal offset of the ch attribute.

vAlign

Not supported in HTML5.Please use instead. style.verticalAlign.

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

Standard Properties and Events

TBody Object Supports StandardsPropertiesAndEvents.

Related Pages

HTML Tutorial:HTML Table

HTML Reference Manual:HTML <tbody> Tag