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.
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!
Related labels:source:php.cnPrevious article:Have you studied HTML5 seriously? Then here are all the books you should read Next article:What is the attribute of the body element used for background color?Statement of this WebsiteThe 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.cnLatest Articles by Author
2023-04-24 11:00:01 2023-04-24 10:55:51 2023-04-24 10:52:44 2023-04-23 17:40:51 2023-04-23 17:38:02 2023-04-23 17:34:02 2023-04-23 10:15:45 2023-04-23 10:10:52 2023-04-21 16:01:59 2023-04-21 15:58:01Latest IssuesLeverage VueJS components in PHP I want to mix basic HTML generated by Php and VueJS components without having to use VueJS...From 2023-11-11 00:01:4402288v-date-picker to select only month and year Please tell me if there is any other way to do this using v-date-picker. I just want the u...From 2023-11-10 14:05:0501269Related TopicsMore>Popular RecommendationsPopular TutorialsMore>
HTML code example138583 HTML+CSS web page basics48775Latest DownloadsMore>
- About us Disclaimer Sitemap
- php.cn:Public welfare online PHP training,Help PHP learners grow quickly!