Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

<caption>

Questa traduzione è incompleta. Collabora alla traduzione di questo articolo dall’originale in lingua inglese.

Sommario

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

Nota: Quando l'elemento <table> genitore di un elemento <caption> è l'unico discendente di un elemento <figure>, usare l'elemento <figcaption> al posto di questo.

Attributi

Questo elemento accetta gli attributi globali.

align Deprecato HTML4.01 Obsolete since HTML5
Questo attributo indica l'allineamento di questo elemento rispetto alla tabella. Può assumere i seguenti valori:
  • left, mostrato sulla sinistra della tabella
  • top, mostrato prima della tabella
  • right, mostrato sulla destra della tabella
  • bottom, mostrato sotto la tabella
Nota: Non usare
Do not use this attribute, as it has been deprecated: the <caption> element should be styled using CSS. To give a similar effect to the align attribute, use the the CSS properties caption-side and text-align.

Examples

Please see the <table> page for examples on <caption>

Specifications

Specification Status Comment
WHATWG HTML Living Standard
The definition of '<caption>' in that specification.
Living Standard  
HTML5
The definition of '<caption>' in that specification.
Recommendation  
HTML 4.01 Specification
The definition of '<caption>' in that specification.
Recommendation  

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) 1.0 (1.7 or earlier) (Yes) (Yes) (Yes)
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) 1.0 (1.0) (Yes) (Yes) (Yes)

See also

Tag del documento e collaboratori

 Hanno collaborato alla realizzazione di questa pagina: nicolo-ribaudo
 Ultima modifica di: nicolo-ribaudo,