--- title: slug: Web/HTML/Element/caption translation_of: Web/HTML/Element/caption ---

Sommario

L'elemento HTML <caption> rappresenta il titolo di una tabella.

Nota: Quando l'elemento {{HTMLElement("table")}} genitore di un elemento {{HTMLElement("caption")}} è l'unico discendente di un elemento {{HTMLElement("figure")}}, usare l'elemento {{HTMLElement("figcaption")}} al posto di questo.

Attributi

Questo elemento accetta gli attributi globali.

{{htmlattrdef("align")}} {{deprecatedGeneric('inline','HTML4.01')}} {{obsoleteGeneric('inline','HTML5')}}
Questo attributo indica l'allineamento di questo elemento rispetto alla tabella. Può assumere i seguenti valori:
Nota: Non usare
Do not use this attribute, as it has been deprecated: the {{HTMLElement("caption")}} element should be styled using CSS. To give a similar effect to the align attribute, use the the CSS properties {{cssxref("caption-side")}} and {{cssxref("text-align")}}.

Esempi

Vedere la pagina {{HTMLElement("table")}} per esempi su {{HTMLElement("caption")}}

Specifiche

Specification Status Comment
{{SpecName('HTML WHATWG', 'tabular-data.html#the-caption-element', '<caption>')}} {{Spec2('HTML WHATWG')}}
{{SpecName('HTML5 W3C', 'tabular-data.html#the-caption-element', '<caption>')}} {{Spec2('HTML5 W3C')}}
{{SpecName('HTML4.01', 'struct/tables.html#h-11.2.2', '<caption>')}} {{Spec2('HTML4.01')}}

Compatibilità dei browser

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support {{CompatVersionUnknown}} {{CompatGeckoDesktop("1.0")}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatVersionUnknown}} {{CompatGeckoMobile("1.0")}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}

Guarda anche

{{HTMLRef}}