Hamburger-Menu
Bild zum Thema

Tag <tbody>

html css php mysql javascript
Bild zum Thema

Tag <tbody>

Definition

Status: Aktueller Standard


Das Tag <tbody> steht für table body (Tabellen-Körper).
Das Tag <tbody> gruppiert den eigentlichen Hauptinhalt (die Datenzeilen) einer HTML-Tabelle. Es hilft dabei, die Struktur einer Tabelle logisch von Kopf- (<thead>) und Fußzeilen (<tfoot>) zu trennen.

Syntax

<tbody>...</tbody>

Attribute bzw. Unterelemente

Global

Globale Attribute


Beispiele

= Tag

= Attribut

= Wert

Text
= Kommentar bzw. wichtig!
Beispiel <tbody>

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: <tbody>-Demo 1