好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

HTML的<table>标签

HTML <table> 标签

所有浏览器都支持 <table> 标签。

定义和用法 (推荐学习:HTML入门教程)

<table> 标签定义 HTML 表格。

简单的 HTML 表格由 table 元素以及一个或多个 tr、th 或 td 元素组成。

tr 元素定义表格行,th 元素定义表头,td 元素定义表格单元。

更复杂的 HTML 表格也可能包括 caption、col、colgroup、thead、tfoot 以及 tbody 元素。

实例

一个简单的 HTML 表格,包含两行两列:

<html>
<body>

<table border="1">
  <tr>
    <th>Month</th>
    <th>Savings</th>
  </tr>
  <tr>
    <td>January</td>
    <td>$100</td>
  </tr>
</table>

</body>
</html> 

以上就是HTML的<table> 标签的详细内容,更多请关注Gxl网其它相关文章!

查看更多关于HTML的<table>标签的详细内容...

  阅读:42次

上一篇: HTML字符实体

下一篇:HTML的<select>标签