<figcaption>

  • Revision slug: HTML/Element/figcaption
  • Revision title: <figcaption>
  • Revision id: 334743
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

{{HTMLVersionHeader(5)}}

Summary

The HTML <figcaption> Element represents a caption or a legend associated with a figure or an illustration described by the rest of the data of the {{HTMLElement("figure")}} element which is its immediate ancestor which means <figcaption> can be the first or last element inside a {{HTMLElement("figure")}} block. Also, the HTML Figcaption Element is optional; if not provided, then the parent figure element will have no caption.

  • Content categories None.
  • Permitted contentFlow content.
  • Tag omission {{no_tag_omission}}
  • Permitted parent elements A {{HTMLElement("figure")}} element; the <figcaption> element must be its first or last child.
  • DOM interface {{domxref("HTMLElement")}}

Attributes

This element has no other attributes than the global attributes, common to all elements.

Examples

Please see the {{HTMLElement("figure")}} page for examples on <figcaption>.

Specifications

Specification Status Comment
{{SpecName('HTML WHATWG', 'grouping-content.html#the-figcaption-element', '<figcaption>')}} {{Spec2('HTML WHATWG')}}  
{{SpecName('HTML5 W3C', 'the-figcaption-element.html#the-figcaption-element', '<figcaption>')}} {{Spec2('HTML5 W3C')}}  

Browser compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 8 {{CompatGeckoDesktop("2.0")}} 9.0 11.10 5.1
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support 3.0 {{CompatGeckoMobile("2.0")}} 9.0 11.0 5.1 (iOS 5.0)

See also

  • The {{HTMLElement("figure")}} element.
{{HTML:Element_Navigation}}

Revision Source

<div>
  {{HTMLVersionHeader(5)}}</div>
<h2 id="Summary">Summary</h2>
<p>The <strong>HTML <code>&lt;figcaption&gt;</code> Element</strong> represents a caption or a legend associated with a figure or an illustration described by the rest of the data of the {{HTMLElement("figure")}} element which is its immediate ancestor which means <code>&lt;figcaption&gt;</code> can be the first or last element inside a {{HTMLElement("figure")}} block.&nbsp;Also, the <em>HTML Figcaption Element&nbsp;</em>is optional; if not provided, then the parent figure element will have no caption.</p>
<ul class="htmlelt">
  <li><dfn><a href="/en-US/docs/HTML/Content_categories" title="HTML/Content_categories">Content categories</a></dfn> None.</li>
  <li><dfn>Permitted content</dfn><dfn><a href="/en-US/docs/HTML/Content_categories#flow_content" title="HTML/Content categories#flow content">Flow content</a></dfn>.</li>
  <li><dfn>Tag omission</dfn> {{no_tag_omission}}</li>
  <li><dfn>Permitted parent elements</dfn> A {{HTMLElement("figure")}} element; the <code>&lt;figcaption&gt;</code> element must be its first or last child.</li>
  <li><dfn>DOM interface</dfn> {{domxref("HTMLElement")}}</li>
</ul>
<h2 id="Attributes">Attributes</h2>
<p>This element has no other attributes than the <a href="/en-US/docs/HTML/Global_attributes" rel="internal">global attributes</a>, common to all elements.</p>
<h2 id="Examples">Examples</h2>
<p>Please see the {{HTMLElement("figure")}} page for examples on <code>&lt;figcaption&gt;</code>.</p>
<h2 id="Specifications" name="Specifications">Specifications</h2>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="col">Specification</th>
      <th scope="col">Status</th>
      <th scope="col">Comment</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>{{SpecName('HTML WHATWG', 'grouping-content.html#the-figcaption-element', '&lt;figcaption&gt;')}}</td>
      <td>{{Spec2('HTML WHATWG')}}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>{{SpecName('HTML5 W3C', 'the-figcaption-element.html#the-figcaption-element', '&lt;figcaption&gt;')}}</td>
      <td>{{Spec2('HTML5 W3C')}}</td>
      <td>&nbsp;</td>
    </tr>
  </tbody>
</table>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<p>{{CompatibilityTable}}</p>
<div id="compat-desktop">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Chrome</th>
        <th>Firefox (Gecko)</th>
        <th>Internet Explorer</th>
        <th>Opera</th>
        <th>Safari</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>8</td>
        <td>{{CompatGeckoDesktop("2.0")}}</td>
        <td>9.0</td>
        <td>11.10</td>
        <td>5.1</td>
      </tr>
    </tbody>
  </table>
</div>
<div id="compat-mobile">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Android</th>
        <th>Firefox Mobile (Gecko)</th>
        <th>IE Mobile</th>
        <th>Opera Mobile</th>
        <th>Safari Mobile</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>3.0</td>
        <td>{{CompatGeckoMobile("2.0")}}</td>
        <td>9.0</td>
        <td>11.0</td>
        <td>5.1 (iOS 5.0)</td>
      </tr>
    </tbody>
  </table>
</div>
<h2 id="See_also">See also</h2>
<ul>
  <li>The {{HTMLElement("figure")}} element.</li>
</ul>
<div>
  {{HTML:Element_Navigation}}</div>
Revert to this revision