HTML/Elements/figcaption

From Web Education Community Group
< HTML‎ | Elements
Revision as of 16:38, 22 November 2011 by Hiroki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.