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

La balise <tfoot>

La balise <tfoot> est un groupe de cellules de pied 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 <tfoot>

<table>
     <caption>Mes courses</caption>
     <thead>
          <tr>
               <th>Aliment</th>
               <th>Prix</th>
               <th>Poids</th>
          <tr>
     </thead>
     <tfoot>
          <tr>
               <th>Total</th>
               <th>35 euros</th>
               <th>1400 grammes</th>
          <tr>
     </tfoot>
     <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
Total 35 euros 1400 grammes
Poisson 20 euros 500 grammes
Viande 15 euros 900 grammes

2024 © Fabien Branchut