Table title"; the caption tag needs to be placed in "
” label is centered."/> Table title"; the caption tag needs to be placed in "
” label is centered.">

Home>Article>Web Front-end> How to set table title in html

How to set table title in html

青灯夜游
青灯夜游 Original
2021-10-11 14:48:03 11697browse

In HTML, you can use the caption tag to set the table title. The function of this tag is to define the title of the table. The syntax is "

Table title"; the caption tag needs to be placed in "
” tags are aligned.

How to set table title in html

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

In HTML, you can use the

tag to set the table title.

The function of the tag is to define the title of the table.

tag needs to be placed in the "
" tag pair, and must be placed directly after the

You can only define one title per table.

Example:

人物信息
姓名 年龄
Peter 20
Lois 20

How to set table title in html

Usually this title will be centered above the table. However, the CSS properties "text-align" and "caption-side" can be used to set the alignment and display position of the title.

人物信息
姓名 年龄
Peter 20
Lois 20

How to set table title in html

Recommended tutorial: "html video tutorial"

tag.

The above is the detailed content of How to set table title in html. 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