Easy Tutorial
❮ Prop Text Required Jsref Ceil ❯

HTML DOM Legend Object


Legend Object

The Legend object represents an HTML <legend> element.

Accessing Legend Object

You can use getElementById() to access the <legend> element:

Creating Legend Object

You can use the document.createElement() method to create a <legend> element:

Legend Object Properties

Property Description
form Returns a reference to the form that contains the legend.

Standard Properties and Events

The Legend object also supports standard properties and events.


Related Articles

HTML Reference: HTML <fieldset> Tag

HTML Reference: HTML <legend> Tag

❮ Prop Text Required Jsref Ceil ❯