Correction

Correction : Exercice 1 - Tableau simple

Objectif : vérifier l’utilisation correcte de table, caption, thead, tbody, tr, th et td.

Code corrigé

<table>
  <caption>Emploi du temps</caption>
  <thead>
    <tr>
      <th>Jour</th>
      <th>Matière</th>
      <th>Salle</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Lundi</td>
      <td>HTML</td>
      <td>A12</td>
    </tr>
    <tr>
      <td>Mardi</td>
      <td>CSS</td>
      <td>B04</td>
    </tr>
    <tr>
      <td>Mercredi</td>
      <td>JavaScript</td>
      <td>C18</td>
    </tr>
  </tbody>
</table>

Aperçu

Emploi du temps
Jour Matière Salle
Lundi HTML A12
Mardi CSS B04
Mercredi JavaScript C18

Points à retenir

← Retour à l’exercice