In html language, what is the mark of a cell?

王林
Release: 2020-07-15 14:11:29
Original
21469 people have browsed it

在html语言中,单元格的标记是:“

”。“ ”标签用于定义HTML表格中的标准单元格。HTML表格有两类单元格分别是:表头单元和标准单元。其中标准单元包含数据,由td元素创建。

In html language, what is the mark of a cell?

在html语言中,单元格的标记是:

(推荐学习:html教程

标签介绍:

标签定义 HTML 表格中的标准单元格。

HTML 表格有两类单元格:

  • 表头单元 - 包含头部信息(由 th 元素创建)

  • 标准单元 - 包含数据(由 td 元素创建)

td 元素中的文本一般显示为正常字体且左对齐。

代码实现:

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

实现效果:

In html language, what is the mark of a cell?

The above is the detailed content of In html language, what is the mark of a cell?. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!