HTML Legend Element
DOM Legend objects inherit all of the properties and methods of DOM HTMLElement, and also expose the HTMLLegendElement {{ HTMLVersionInline("5") }} (or HTMLLegendElement {{ HTMLVersionInline("4") }}) interface.
Properties
Name | Description | Type |
---|---|---|
form | 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. | readonly HTMLFormElement |
accessKey {{ HTMLVersionInline("4") }} only | A single-character access key to give access to the element. {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }} | DOMString |
align {{ HTMLVersionInline("4") }} only | Alignment relative to the form set. {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }}, {{ deprecated_inline() }} in {{ HTMLVersionInline("4") }} | DOMString |