Hamburger-Menu
Bild zum Thema

Tag <thead>

html css php mysql javascript
Bild zum Thema

Tag <thead>

Definition

Status: Aktueller Standard


Das Tag <thead> steht für table head (Tabellen-Kopf).
Das Tag <thead> gruppiert den den Kopfbereich einer HTML-Tabelle. Es gruppiert die Zeilen, die als Spaltenüberschriften dienen, und trennt sie logisch vom Datenkörper (<tbody>) und dem Fuß (<tfoot>).

Syntax

<thead>...</thead>

Attribute bzw. Unterelemente

Global

Globale Attribute


Beispiele

= Tag

= Attribut

= Wert

Text
= Kommentar bzw. wichtig!
Beispiel <thead>

Der Code:
Trennung von Tabellenkopf, Tabellenkörper und Tabellenfuß:
  
<table>
  <thead>
    <tr>
      <th>Produkt</th>
      <th>Preis</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>Web-Lexikon PDF</td>
      <td>19,99 €</td>
    </tr>
    <tr>
      <td>Print-Ausgabe</td>
      <td>29,99 €</td>
    </tr>
  </tbody>

  <tfoot>
    <tr>
      <td><strong>Gesamtsumme</strong></td>
      <td><strong>49,98 €</strong></td>
    </tr>
  </tfoot>
</table>

Ergebnis:
Ergebnis: <thead>-Demo 1