j'ai bien compris la correction mais cela marche comme ça est ce vraiment une grosse erreur d'utiliser des TH au lieu des TD ?
<html>
<head>
<meta charset="utf-8" />
<title>Mon site PHP</title>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
</style>
</head>
<body>
<table>
<thead>
<tr>
<th></th>
<th>1</th>
<th>2</th>
<th>3</th>
<th>4</th>
<th>5</th>
<th>6</th>
<th>7</th>
<th>8</th>
<th>9</th>
<th>10</th>
</tr>
<?php
for($table = 1; $table <= 10; $table++ ){
echo "<tr><th>" . $table . "</th>";
for($i = 1; $i <= 10; $i++ ){
echo "<th>" . $table * $i . "</th>";
}
echo '<tr>';
}
?>
</thead>
<tbody>
</tbody>
</table>
</body>
</html>
Merci beaucoup pour votre temps