📜  如何使用 HTML 定义表格标题?

📅  最后修改于: 2021-08-30 11:49:46             🧑  作者: Mango

在本文中,我们使用 标签元素定义表格标题。 caption 元素用于指定表格的标题。此标签将在

tag. Only one caption can be specified for one table. It is by default aligned to the center.

Syntax:

Example:



  

    

  

    

        GeeksForGeeks     

       

        HTML5: How to define          a table caption?     

       
                                                                                                                                                                                                                                                                     
Students
FirstnameLastnameAge
PriyaSharma24
ArunSingh32
SamWatson41
    

Output:

Supported Browsers are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari