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>
并不一定意味着它在桌子的前面。例如,您可能有这样的布局:
<table>
<tr>
<th>Name:</th>
<td>Tarquin Smith</td>
</tr>
<tr>
<th>Occupation:</th>
<td>Jovian Agent</td>
</tr>
</table>
<thead>
包含行。长话短说,它只是说那排是头排。我不使用它,但它只是让你更容易在你的 CSS 中使用它。例如:
<table>
<thead>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
</thead>
你的CSS可以说:thead {color:green;}
<th>
适用于表格中的一个单元格,它所做的只是粗体并将其中的文本居中。