HTML <thead> Tag



Beschreibung

Die HTML <thead> Tag in Hinzufügen eines Headers zu einem Tisch verwendet. Die thead-Tag wird in Verbindung mit dem tbody-Tag und dem Tag der Festlegung tfoot jeden Teil der Tabelle (Kopfzeile, Fußzeile, Körper) verwendet.

Beispiel

<!DOCTYPE html>
<html>
<head>
<title>HTML thead Tag</title>
</head>
<body>
<table style="width:100%" border="1">
<thead>
<tr>
<td colspan="4">This is the head of the table</td>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="4">This is the foot of the table</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
<tr>
...more rows here containing four cells...
</tr>
</tbody>
<tbody>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
<tr>
...more rows here containing four cells...
</tr>
</tbody>
</table>
</body>
</html>

Dies wird produzieren folgendes Ergebnis:

...more rows here containing four cells... ...more rows here containing four cells...
This is the head of the table
This is the foot of the table
Cell 1 Cell 2 Cell 3 Cell 4
Cell 1 Cell 2 Cell 3 Cell 4

Global Attribute

Dieser Tag unterstützt alle globalen Attribute beschrieben - HTML Attribute Referenz

spezifische Attribute

Die HTML <thead> Tag auch unterstützt folgende zusätzliche Attribute:

AttributewertBeschreibung
align

right

left

center

justify

char

Veraltete-Visual Ausrichtung.
charcharacterVeraltete-Gibt welches Zeichen, um Text auf auszurichten. Verwendet werden, wenn align = "char"
charoffPixel oder %Veraltete-Gibt eine Ausrichtung Offset (in Pixel oder Prozentwert) gegen die ersten Zeichen als mit dem char-Attribut angegeben. Verwendet werden, wenn align = "char"
valign

top

middle

bottom

baseline

VeralteteVertikale Ausrichtung.

Event Attribute

Dieser Tag unterstützt alle in beschriebene Ereignis Attribute - HTML Events Referenz

Browser unterstützt

ChromeFirefoxIEOperaSafariAndroid
jajajajajaja
html_tags_reference.htm
Advertisements