Warning:
This wiki has been archived and is now read-only.

Elements/figcaption

From HTML Wiki
Jump to: navigation, search

<figcaption>

The <figcaption> element represents a caption or legend for the contents of the parent figure element.

HTML Attributes

See global attributes.


Examples

Example A

As the first child of a figure element [try it]:

<figure>
  <figcaption>The Stata Center</figcaption>
  <img src="stata.jpg" alt="The Stata Center Building">
</figure>

Example B

As the last child of a figure element [try it]:

<figure>
  <img src="stata.jpg" alt="The Stata Center Building">
  <figcaption>The Stata Center</figcaption>
</figure>


HTML Reference

The <figcaption> element was introduced in HTML5 - 4.5.12 The figcaption element.