Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

How to set caption for an image using HTML ?

  • Last Updated : 30 Sep, 2020

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


<figcaption> Figure caption... </figcaption>

Example 1: 


<!DOCTYPE html>
        body {
            text-align: center;
        h1 {
            color: green;
        How to define an image caption?
        <img src=
             alt="gfglogo" style="width:50%">
        <figcaption>GeeksforGeeks Logo</figcaption>


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!