Objet THead DOM HTML

  • Page précédente <th>
  • Page suivante <tr>

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

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 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.Veuillez utiliser à la place style.verticalAlign.

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

Propriétés et événements standards

L'objet THead prend en charge les normesPropriétésetÉvénements.

Pages associées

Tutoriel HTML :Tableau HTML

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

  • Page précédente <th>
  • Page suivante <tr>