Exécuter
❯
Exécuter le code
Ctrl+Alt+R
Sauvegarder le code
Ctrl+Alt+A
Changer d'orientation
Ctrl+Alt+O
Changer de thème
Ctrl+Alt+D
<!DOCTYPE html> <html> <head> <style> table, th, td { bordure: 1px solide noir; border-collapse: collapse; } th, td { padding: 5px; text-align: gauche; } </style> </head> <body> <h2>
Légende du tableau
</h2> <p>Pour ajouter une légende à un tableau, utilisez la balise caption.</p> <table style="width:100%"> <caption>Économies mensuelles</caption> <tr> <th>Mois</th> <th>Économies</th> </tr> <tr> <td>Janvier</td> <td>$100</td> </tr> <tr> <td>Février</td> <td>$50</td> </tr> </table> </body> </html>