HTML <object> form Attribute
Example
<form action="action.php" id="form1">
First name: <input type="text" name="fname"><br>
<input type="submit" value="Submit">
</form>
<object form="form1" data="img-boy.jpg" width="300" height="150"></object>
Meaning
The form element, if any, that the object element is associated with (its form owner).
The value of the attribute must be an ID of a <form> element in the same document.
Standard Syntax
<object form="formId">...</object>
Advertisement
Attribute Values
| Value | Description |
|---|---|
| formId | ID of a <form> element in the same document. |