The HTML <figcaption>
or Figure Caption element represents a caption or legend describing the rest of the contents of its parent <figure>
element.
The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
Content categories | None. |
Permitted content | Flow content. |
Tag omission | None, both the starting and ending tag are mandatory. |
Permitted parents | A <figure> element; the <figcaption> element must be its first or last child.
|
Implicit ARIA role | No corresponding role |
Permitted ARIA roles | group , none , presentation
|
DOM interface | HTMLElement
|
Attributes
This element only includes the global attributes.
Examples
Please see the <figure>
page for examples on <figcaption>
.
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living StandardThe definition of '<figcaption>' in that specification. | Living Standard | |
HTML5The definition of '<figcaption>' in that specification. | Recommendation |
Browser compatibility
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
See also
- The
<figure>
element.
<figcaption>: The Figure Caption element by Mozilla Contributors is licensed under CC-BY-SA 2.5.