I know that the browsers are very flexible with html, but is there any other reason why this is possible?
<table>
<tr>
<th>
Column 1
</th>
</tr>
<table>
I know that the browsers are very flexible with html, but is there any other reason why this is possible?
<table>
<tr>
<th>
Column 1
</th>
</tr>
<table>
<th>
doesn't necessarly mean it's in the head of the table. For example, you might have this layout:
<table>
<tr>
<th>Name:</th>
<td>Tarquin Smith</td>
</tr>
<tr>
<th>Occupation:</th>
<td>Jovian Agent</td>
</tr>
</table>
<thead>
contains rows. long story short it just says that that row is the head row. i dont use it but it just makes it easier to use it in your css. for example:
<table>
<thead>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
</thead>
and your css could say: thead {color:green;}
<th>
is for one cell in your table and all it does is bold and center the text in it.