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.

Revision 109020 of HTMLLegendElement

  • Revision slug: DOM/HTMLLegendElement
  • Revision title: HTMLLegendElement
  • Revision id: 109020
  • Created:
  • Creator: jswisher
  • Is current revision? No
  • Comment no changes

Revision Content

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

 

Revision Source

<h3 id="HTML_Legend_Element">HTML Legend Element</h3>
<p>DOM Legend objects inherit all of the properties and methods of DOM <a href="/en/DOM/HTMLElement" rel="internal" title="en/DOM/HTMLElement">HTMLElement</a>, and also expose the <a class=" external" href="https://www.w3.org/TR/html5/forms.html#htmllegendelement" rel="external nofollow" target="_blank" title="https://www.w3.org/TR/html5/forms.html#htmllegendelement">HTMLLegendElement</a> {{ HTMLVersionInline("5") }} (or <a class=" external" href="https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-21482039" title="https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-21482039">HTMLLegendElement</a> {{ HTMLVersionInline("4") }}) interface.</p>
<dl> <h3 id="Properties">Properties</h3> <table border="0" class="standard-table"> <thead> <tr> <th scope="col">Name</th> <th scope="col">Description</th> <th scope="col">Type</th> </tr> </thead> <tbody> <tr> <td>form</td> <td> <p>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 <strong>form</strong> attribute on the parent fieldset element. Otherwise, it returns null.</p> </td> <td>readonly <a href="/en/DOM/HTMLFormElement" title="en/DOM/HTMLFormElement">HTMLFormElement</a></td> </tr> <tr> <td>accessKey {{ HTMLVersionInline("4") }} only</td> <td>A single-character access key to give access to the element. {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }}</td> <td>DOMString</td> </tr> <tr> <td>align {{ HTMLVersionInline("4") }} only</td> <td>Alignment relative to the form set. {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }}, {{ deprecated_inline() }} in {{ HTMLVersionInline("4") }}</td> <td>DOMString</td> </tr> </tbody> </table> <p> </p>
</dl>
Revert to this revision