HTML figcaption Tag

The HTML <figcaption> tag is used inside the HTML figure tag to provide the caption to the content of the figure element.

  • This is newly introduced tag in HTML5

  • The <figcaption> tag is also known as the very first and last child of the figure element.

  • Also, this is a block-level element.

HTML <figcaption> Tag - Syntax and Usage

The <figcaption> element requires the start(opening) tag and end(closing) tag. Following is the syntax for the same:

<figure>
    <figcaption>
        ...
    </figcaption>
</figure>

HTML <figcaption> Tag Basic Example

Below we have a basic example where we have used the <figcaption> tag:

HTML <figcaption> Tag Attributes

This element does not have any specific attributes although this element supports Global attributes and Event attributes.

Default CSS Settings for HTML <figcaption> Tag

figcaption {
    display: block;
}

Browser Support for HTML <figcaption> Tag

Following browsers support this attribute:

  • Firefox 4+

  • Google Chrome 6+

  • Internet Explorer 9+

  • Apple Safari 5.1+

  • Opera 11.1+