英 [?te?bl]   美 [?teb?l]  

n.桌子;表,目錄;手術臺,工作臺,游戲臺;平地層

vt.制表;擱置;嵌合;擱置

adj.桌子的

第三人稱單數: tables 復數: tables 現在分詞: tabling 過去式: tabled

html table標簽 語法

作用:定義 HTML 表格。

說明:簡單的 HTML 表格由 table 元素以及一個或多個 tr、th 或 td 元素組成。tr 元素定義表格行,th 元素定義表頭,td 元素定義表格單元。更復雜的 HTML 表格也可能包括 caption、col、colgroup、thead、tfoot 以及 tbody 元素。

注釋:在 HTML 4.01 中,table 元素的 "align" 和 "bgcolor" 屬性是不被贊成使用的。在 XHTML 1.0 Strict DTD,table 元素的 "align" 和 "bgcolor" 屬性是不被支持的。

html table標簽 示例

<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>
<body>

<table border="1">
  <tr>
    <th>name</th>
    <th>job</th>
  </tr>
  <tr>
    <td>滅絕師太</td>
    <td>PHP中文網高級講師</td>
  </tr>
    <tr>
    <td>歐陽克</td>
    <td>PHP中文網講師</td>
  </tr>
    <tr>
    <td>韋小寶</td>
    <td>PHP中文網初級講師</td>
  </tr>
</table>

</body>
</html>

運行實例 ?

點擊 "運行實例" 按鈕查看在線實例

熱門推薦