form

The form read-only property of the HTMLLegendElement interface returns an HTMLFormElement object that owns the HTMLFieldSetElement associated with this , or null if this legend is not associated with a

owned by a form.

MDN Reference