HTML/Elements/figcaption

From W3C Wiki
< HTML‎ | Elements
Revision as of 01:00, 1 February 2014 by Muchos (Talk | contribs)

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>

Figcaption01.png

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>

Figcaption02.png

HTML Reference

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