Hamburger-Menu
Bild zum Thema

Tag <tfoot>

html css php mysql javascript
Bild zum Thema

Tag <tfoot>

Definition

Status: Aktueller Standard


Das Tag <tfoot> steht für table footer (Tabellen-Fuß).
Das Tag <tfoot> wird verwendet, um zusammenfassende Inhalte am Ende einer Tabelle zu gruppieren. Es ist das logische Gegenstück zum <thead>.

Syntax

<tfoot>...</tfoot>

Attribute bzw. Unterelemente

Global

Globale Attribute


Beispiele

= Tag

= Attribut

= Wert

Text
= Kommentar bzw. wichtig!
Beispiel <tfoot>

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