Difference between revisions of "HTML/Elements/figcaption"

From W3C Wiki
< HTML‎ | Elements
Jump to: navigation, search
(HTML Reference)
m (HTML Reference: Fixed the figcaption section to correctly link to the appropriate HTML5 spec, instead of the HTML root element page)
Line 55: Line 55:
 
== HTML Reference ==
 
== HTML Reference ==
  
The &lt;figcaption&gt; element was introduced in HTML5 - [http://www.w3.org/TR/html5/semantics.html#the-figcaption-element 4.5.12 The figcaption element].
+
The &lt;figcaption&gt; element was introduced in HTML5 - [http://www.w3.org/TR/html5/grouping-content.html#the-figcaption-element 4.5.12 The figcaption element].
  
 
[[Category:HTML]]
 
[[Category:HTML]]
 
[[Category:HTMLElement]]
 
[[Category:HTMLElement]]

Revision as of 21:12, 12 October 2013

<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.