". The "" tag is used to define the title of the table, and the "" tag must be placed directly after the "" tag."/>". The "
" tag is used to define the title of the table, and the "" tag must be placed directly after the "" tag.">

Home >Web Front-end >HTML Tutorial >What is the html code to set the table title?

What is the html code to set the table title?

藏色散人
藏色散人Original
2020-07-08 11:39:3411621browse

The html code for setting the table title is "

". The function of the "
" tag is to define the title of the table, and the "" tag must be directly Place it after the "" tag.

What is the html code to set the table title?

The html code for setting the table title is:

<caption>< The /caption>

tag defines the title of the table.

The

tag must be placed directly after the tag.

You can only define one title per table.

Tip: 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.

Differences between HTML 4.01 and HTML5

HTML5 does not support the align attribute.

The align attribute has been deprecated in HTML 4.01.

For more related knowledge, please visit PHP Chinese website!

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