Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML5 figcaption Tag

  • Difficulty Level : Basic
  • Last Updated : 07 Jun, 2021

The <figurecaption> tag in HTML is used to set a caption to the figure element in a document. This tag is new in HTML5.
 

Syntax: 

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

<figcaption> Figure caption </figcaption>

Example 1: 

HTML




<!DOCTYPE html>
 
<html>
 
    <body>
 
        <h1>GeeksforGeeks</h1>
        <h2><figcaption Tag></h2>
        <figure>
        <img src=
        alt="gfglogo" style="width:50%">
        <!--HTML figcaption tag starts here-->
        <figcaption>
            GeeksforGeeks Logo
        </figcaption>
        <!--HTML figcaption tag ends here-->
        </figure>
 
    </body>
 
</html>                   

Output: 
 



Example 2: 

HTML




<!DOCTYPE html>
 
<html>
 
    <body>
 
        <h1>GeeksforGeeks</h1>
        <h2><figcaption> Tag</h2>
        <figure>
        <img src=
        alt="gfglogo">
        <!--HTML figcaption tag starts here-->
        <figcaption>
            GFG Logo
        </figcaption>
        <!--HTML figcaption tag ends here-->
        </figure>
 
    </body>
 
</html>                   

Output: 

Supported Browsers: 

  • Internet Explorer 9.0
  • Firefox 4.0
  • Opera 11.1
  • Safari 5.0



My Personal Notes arrow_drop_up
Recommended Articles
Page :