HTML DOM TBody Object


TBody Object

The TBody object represents an HTML <tbody> element.

Access a TBody Object

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

Example

var x = document.getElementById("myTBody");
Try it Yourself »

Create a TBody Object

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

Example

var x = document.createElement("TBODY");
Try it Yourself »


TBody Object Properties

Property Description
align Not supported in HTML5. Use style.textAlign instead.
Sets or returns the horizontal alignment of the content inside the tbody element
ch Not supported in HTML5.
Sets or returns an alignment character inside the tbody 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 TBody object also supports the standard properties and events.


Related Pages

HTML tutorial: HTML Tables

HTML reference: HTML <tbody> tag


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