Gunnar Bittersmann: <th> oder <thead>

Beitrag lesen

<table summary="Zusammenfassung">
<caption>Tabellentitel</caption>
<thead>
<tr><!-- ... --></tr>
</thead>
<tbody>
<tr><!-- ... --></tr>
</tbody>
</table>

Nicht ganz.

Wenn eine Tabelle derart unterteilt wird, dann: thead, tfoot, tbody in dieser Reihenfolge. Alle drei sind dann erforderlich (können aber leer sein).

Zwischen </thead> und <tbody> muss <tfoot></tfoot> stehen:

<table summary="Zusammenfassung">
  <caption>Tabellentitel</caption>
  <thead>
    <tr><!-- ... --></tr>
  </thead>
  <tfoot></tfoot>
  <tbody>
    <tr><!-- ... --></tr>
  </tbody>
</table>

Gunnar

--
Good results come from experience; and experience comes from bad results.