Home > Web Front-end > Front-end Q&A > Does html5 support using tables?

Does html5 support using tables?

WBOY
Release: 2022-03-25 17:12:53
Original
1710 people have browsed it

html5中支持用表格;可以利用table标签来定义一个html表格,简单的html表格由table元素以及一个或者多个tr、th或td元素组成,tr元素定义表格行,th元素定义表格表头,td元素定义表格单元。

Does html5 support using tables?

本文操作环境:Windows10系统、html5版、Dell G3电脑。

html5支持用表格吗

html中可以利用

标签定义 HTML 表格。

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

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

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

示例如下:

<html>
<body>
<table border="1">
  <tr>
    <th>Month</th>
    <th>Savings</th>
  </tr>
  <tr>
    <td>January</td>
    <td>$100</td>
  </tr>
</table>
</body>
</html>
Copy after login

输出结果:

Does html5 support using tables?

推荐教程:《html视频教程

The above is the detailed content of Does html5 support using tables?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template