Home  >  Article  >  Web Front-end  >  What does table tag mean?

What does table tag mean?

云罗郡主
云罗郡主Original
2019-02-20 14:13:1522288browse

table标签是什么意思

table标签定义HTML表格,每个表格均有若干行(由a34de1251f0d9fe1e645927f19a896e8标签定义),每行被分割为若干单元格(由 b6c5a531a458a2e790c1fd6421739d1c标签定义)。字母 td 指表格数据(table data),即数据单元格的内容。数据单元格可以包含文本、图片、列表、段落、表单、水平线、表格等等。

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>



The above is the detailed content of What does table tag mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What does sup tag mean?Next article:What does sup tag mean?