{{HTMLRef}}
El elemento HTML <figcaption>
representa un subtítulo o leyenda asociado al contenido del elemento padre {{HTMLElement("figure")}}, pudiendo ser colocado como primer o último hijo. Es importante destacar que el elemento <figcaption>
es opcional.
{{EmbedInteractiveExample("pages/tabbed/figcaption.html","tabbed-shorter")}}
Content categories | Ninguna |
---|---|
Contenido Permitido | Flow content. |
Omisión de etiqueta | {{no_tag_omission}} |
Elementos padre permitidos | En un elemento {{HTMLElement("figure")}} el elemento <figcaption> debe ser el primero o el último hijo. |
Interfaz DOM | {{domxref("HTMLElement")}} |
Contento en el que puede ser usado | Como the first o last child de un <figure> element |
Este elemento sólo incluye los global attributes.
Para ejemplos con <figcaption>
, por favor ver la página {{HTMLElement("figure")}}.
Especificación | Estado | Comentario |
---|---|---|
{{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')}} |
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
{{Compat("html.elements.figcaption")}}