{{HTMLRef}}
L'element HTML <figcaption> representa una llegenda o una llegenda associada a una figura o una il·lustració descrit per la resta de les dades de l'element {{HTMLElement("figure")}} que és el seu ancestra immediat, el que significa que <figcaption> pot ser el primer o l'últim element dins d'un bloc {{HTMLElement("figure")}}. A més, l'element HTML figcaption és opcional; si no es proporciona, l'element figure pare no tindrà cap llegenda.
| Categories de contingut | Cap. |
|---|---|
| Contingut permès | Contingut dinàmic. |
| Omissió de l'etiqueta | {{no_tag_omission}} |
| Elements pares permesos | En un element {{HTMLElement("figure")}}; l'element <figcaption> ha de ser el primer o l'últim fill. |
| Interfície DOM | {{domxref("HTMLElement")}} |
Aquest element només inclou els atributs globals.
Si us plau, veure el pàgina {{HTMLElement("figure")}} per exemples de <figcaption>.
| Especificació | Estat | Comentari |
|---|---|---|
| {{SpecName('HTML WHATWG', 'grouping-content.html#the-figcaption-element', '<figcaption>')}} | {{Spec2('HTML WHATWG')}} | |
| {{SpecName('HTML5 W3C', 'grouping-content.html#the-figcaption-element', '<figcaption>')}} | {{Spec2('HTML5 W3C')}} |
{{CompatibilityTable}}
| Característica | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Suport bàsic | 8 | {{CompatGeckoDesktop("2.0")}} | 9.0 | 11.10 | 5.1 |
| Característica | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Suport bàsic | 3.0 | {{CompatGeckoMobile("2.0")}} | 9.0 | 11.0 | 5.1 (iOS 5.0) |