Objet TBody DOM HTML

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

Propriétés Description
align

HTML5 does not support.Veuillez utiliser à la place style.textAlign.

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

ch

HTML5 does not support.

Sets or returns the alignment character within the tbody element.

chOff

HTML5 does not support.

Sets or returns the horizontal offset of the ch attribute.

vAlign

HTML5 does not support.Veuillez utiliser à la place style.verticalAlign.

Définit ou retourne la manière dont le contenu de l'élément thead est aligné verticalement.

Propriétés et événements standards

L'objet TBody prend en charge les standardsPropriétésetÉvénements.

Pages associées

Tutoriel HTML :Tableau HTML

Manuel de référence HTML :Balise <tbody> HTML