What is the html code to set the table title?

藏色散人
Release: 2020-07-08 11:39:34
Original
11385 people have browsed it

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:

< 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!

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 [email protected]
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!