HTML <figcaption>Tag


Example

Use the <figure> element to mark an image in a document. The <figure> element has a caption:

<figure> <img src="img_pulpit.jpg" alt="The Pulpit Rock" width="304" height="228"> <figcaption>Fig1. - A view of the pulpit rock in Norway.</figcaption> </figure>

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

IE 9, Firefox, Opera, Chrome and Safari support the <figcaption> tag.

Note:IE 8 or earlier versions of IE browsers do not support the <figcaption> tag.


Tag definition and usage instructions

The <figcaption> tag defines<figure>a caption for the element.

The <figcaption> element should be placed as the first or last child of the <figure> element.


Differences between HTML 4.01 and HTML5

The <figcaption> tag is new in HTML5.


Global Attributes

The <figcaption> tag supportsHTML global attributes.。


Event Attributes

The <figcaption> tag supportsHTML event attributes.。

Other extensions