" tag is to define the title of the table, and the "
" tag must be directly Place it after the "
" tag.
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.
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