Easy Tutorial
❮ Att Tfoot Valign Ev Onkeypress ❯

HTML <figcaption> Tag

Example

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

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

Browser Support

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

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


Definition and Usage

The <figcaption> tag defines a caption for a <figure> 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 supports HTML's global attributes.


Event Attributes

The <figcaption> tag supports HTML's event attributes.

❮ Att Tfoot Valign Ev Onkeypress ❯