HTML标签(第二篇)
2017-04-04 本文已影响15人
JohnnyB0Y
<h5>表格:Table</h5>
<table>
<tr>
<td>单元格内容1</td>
<td>单元格内容2</td>
<td>单元格内容3</td>
</tr>
</table>
![](https://img.haomeiwen.com/i331623/5757f6396fceed7e.png)
![](https://img.haomeiwen.com/i331623/0e0893903b1459f1.png)
![](https://img.haomeiwen.com/i331623/646940051b4cd3d1.png)
<h6>表格的结构:</h6>
在使用表格进行布局时,可以将表格划分为头部、主体和页脚,具体 如下所示:
< thead>< /thead>:用于定义表格的头部,必须位于<table></table>标记中,一般包含网页的logo和导航等头部信息。
< tfoot>< /tfoot >:用于定义表格的页脚,位于< table>< /table>标记中< thead>< /thead>标记之后,一般包含网页底部的企业信息等。
< tbody>< /tbody>:用于定义表格的主体,位于< table>< /table>标记中< tfoot></ tfoot>标记之后,一般包含网页中除头部和底部之外的其他内容。