HTML/Elemente/tbody

Aus SELFHTML-Wiki
< HTML‎ | Elemente
Wechseln zu: Navigation, Suche

Das tbody-Element repräsentiert eine Gruppe von Tabellenzeilen, die Tabellendaten enthalten.

Syntax
Start-Tag: optional
End-Tag: optional
WAI‑ARIA‑Rolle
  • rowgroup
Elternelemente
Darf vorkommen in:
erlaubte Inhalte
beliebig viele tr-Elemente sowie script- oder template-Elemente
Beispiel
<table>
    <thead>
        <tr>
          <th>Kopf</th>
        </tr>
    </thead>
    <tbody>
        <tr>
          <td>Inhalt</td>
        </tr>
    </tbody>
    <tfoot>
        <tr>
          <td>Fuß</td>
        </tr>
    </tfoot>
</table>



Empfehlung: Auch wenn keine <tbody>-/</tbody>-Tags im Quelltext notiert werden, ist das tbody-Element im DOM vorhanden (bei Verarbeitung als HTML). Semantisch können auch mehrere tbody-Elemente sinnvoll sein.

Siehe auch

Weblinks