Valid XHTML 1.0 Strict
Apprendre le XHTML > Tableaux Xhtml > Balise THEAD

La balise <thead>

La balise <thead> est un groupe de cellules d'en-tête d'un tableau de données de la page web xhtml (balise de type BLOC). Cette balise doit obligatoirement se trouver avant la balise <tbody>.

Utilisation de la balise <thead>

<table>
     <caption>Mes courses</caption>
     <thead>
          <tr>
               <th>Aliment</th>
               <th>Prix</th>
               <th>Poids</th>
          </tr>
     </thead>
     <tbody>
          <tr>
               <th>Poisson</th>
               <td>20 euros</td>
               <td>500 grammes</td>
          </tr>
          <tr>
               <th>Viande</th>
               <td>15 euros</td>
               <td>900 grammes</td>
          </tr>
     </tbody>
</table>


affichera :

Mes courses
Aliment Prix Poids
Poisson 20 euros 500 grammes
Viande 15 euros 900 grammes

2024 © Fabien Branchut