Skip to content
Related Articles

Related Articles

How to define a table caption using HTML ?

Improve Article
Save Article
  • Last Updated : 08 Jun, 2020
Improve Article
Save Article

In this article, we define a table caption by using the <caption> tag element. The caption element is used to specify the caption of a table. This tag will be inserted just after the

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


<caption align="value"> </caption>


<!DOCTYPE html>
        td {
            border: 1px solid black;
        #GFG {
            font-size: 25px;
            color: green;
    <h1 style="color:green;font-size:35px;">
        HTML5: How to define 
        a table caption?
        <!-- Adding caption to the table -->
        <caption id="GFG">Students</caption>


Supported Browsers are listed below:

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

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!