I volontari di MDN non hanno ancora tradotto questo articolo in Italiano. Unisciti a noi e traducilo tu stesso.
Puoi anche consultare l’articolo in English (US).

The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface.


Inherits properties from its parent, HTMLElement.

Name Description Type
form Read only

The form that this legend belongs to. If the legend has a fieldset element as its parent, then this attribute returns the same value as the form attribute on the parent fieldset element. Otherwise, it returns null.

accessKey A single-character access key to give access to the element. DOMString
align  Alignment relative to the form set DOMString


No specific method; inherits methods from its parent, HTMLElement.


Specification Status Comment
HTML Living Standard
The definition of 'HTMLLegendElement' in that specification.
Living Standard  
HTML 5.1
The definition of 'HTMLLegendElement' in that specification.
The definition of 'HTMLLegendElement' in that specification.
Recommendation The property accessKey is now defined on HTMLElement.
The following property is now obsolete: align.
Document Object Model (DOM) Level 2 HTML Specification
The definition of 'HTMLLegendElement' in that specification.
Obsolete No change from Document Object Model (DOM) Level 1 Specification.
Document Object Model (DOM) Level 1 Specification
The definition of 'HTMLLegendElement' in that specification.
Obsolete Initial definition.

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic supportChrome Full support YesEdge Full support YesFirefox Full support 1IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android ? Edge Mobile Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?


Full support  
Full support
Compatibility unknown  
Compatibility unknown

See also

  • The HTML element implementing this interface: <legend>

Tag del documento e collaboratori

Hanno collaborato alla realizzazione di questa pagina: sideshowbarker, fscholz, Sebastianz, erikadoyle, Nexii, teoli, kscarfone, Sheppy, jswisher
Ultima modifica di: sideshowbarker,