Easy Tutorial
❮ Jsref Getcomputedstyle Prop Style Borderimageslice ❯

Legend form Attribute

Label Object

Example

Returns the id of the form that contains the <legend> element:

x Output result:


Definition and Usage

The form attribute returns a reference to the form that contains the legend.

If successful, this attribute returns a form object.

Note: This attribute is read-only.


Browser Support

All major browsers support the form attribute.


Syntax

Technical Details

| Return Value: | A reference to the form that contains the legend. If the legend is not within a form, it returns null. | | --- | --- |


Label Object

❮ Jsref Getcomputedstyle Prop Style Borderimageslice ❯