用途
<tr> 标签定义 HTML 表格中的行,其包含一个或多个<th>、<td>标签。
例子
<table border="1" width="300px" style="text-align: center">
<tr>
<td>First Cell</td>
<td>Second Cell</td>
<td>Third Cell</td>
</tr>
<tr>
<td>First Cell</td>
<td>Second Cell</td>
<td>Third Cell</td>
</tr>
</table>
执行结果
First Cell | Second Cell | Third Cell |
---|---|---|
First Cell | Second Cell | Third Cell |
<tr> 标签在HTML5与HTML4.01之间存在如下差异