html table tag


  Translation results:

英[ˈteɪbl] 美[ˈtebəl]

n.Table; table, directory; operating table, workbench, game table; flat floor

vt.Tabulation; shelving; embedded combine; put aside

adj.

of table Third person singular: tables Plural: tables Present participle: tabling Past tense: tabled

html table tagsyntax

Function:Define HTML table.

Description: A simple HTML table consists of the table element and one or more tr, th or td elements. The tr element defines table rows, the th element defines table headers, and the td element defines table cells. More complex HTML tables may also include caption, col, colgroup, thead, tfoot, and tbody elements.

Note: In HTML 4.01, the "align" and "bgcolor" attributes of the table element are deprecated. In the XHTML 1.0 Strict DTD, the "align" and "bgcolor" attributes of the table element are not supported.

html table tagexample

<html>
<body>

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

</body>
</html>

Run Instance»

Click the "Run Instance" button to view the online instance

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

Run instance»

Click the "Run instance" button to view the online instance

Popular Recommendations

Home

Videos

Q&A