Home > Web Front-end > HTML Tutorial > What does the tag represent?

What does the tag represent?

藏色散人
Release: 2020-02-06 09:28:17
Original
11031 people have browsed it

What does the <tr> tag represent?

标签表示的是什么?

标签定义和用法

标签定义 HTML 表格中的行。

tr 元素包含一个或多个 th 或 td 元素。

HTML 与 XHTML 之间的差异:

在 HTML 4.01 中,tr 元素的 "bgcolor" 是不被赞成使用的。

在 XHTML 1.0 Strict DTD 中,tr 元素的 "bgcolor" 是不被支持的。

代码示例:

一个简单的 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>
Copy after login

效果:

What does the <tr> tag represent?

推荐学习:html教程

The above is the detailed content of What does the tag represent?. 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