form

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

MDN Reference