Table in html with misaligned columns

0

I have this table:

As you can see, the columns are not aligned with the lines, and I do not know why, and I do not know how to fix it, since I smp this way and never had that problem.

Follow the table code:

<table>
<tr>
    <th>Atividade<th>
    <th>Usuario</th>
    <th>Data/Horario</th>
</tr>

    <?php
$a = 0; $b = 0;
while($a < 10){
echo '<tr>';
echo '<td>'.$tabela[$a][$b].'</td>';
echo '<td>'.$tabela[$a][$b+1].'</td>';
echo '<td>'.$tabela[$a][$b+2].'</td>';
echo '</tr>';
$a++;
}
?>
</table>
    
asked by anonymous 19.02.2018 / 22:29

1 answer

4

There is a failure to close the first% w_that is distorting the columns:

<th>Atividade<th>
              ↑

Change to:

<th>Atividade</th>
              ↑
    
19.02.2018 / 22:56