HTML object form attributes
Examples
Located in form form outside the <object> element (but still form part of the form):
<form action="demo_form.html" id="form1">
First name: <input type="text" name="fname"><br>
<input type="submit" value="Submit">
</form>
<object data="helloworld.swf" height="400" width="400" form="form1" name="obj1"></object>
First name: <input type="text" name="fname"><br>
<input type="submit" value="Submit">
</form>
<object data="helloworld.swf" height="400" width="400" form="form1" name="obj1"></object>
try it"
Browser Support
Almost all of the major browsers do not support the form attribute.
Definition and Usage
form attribute specifies the <object> element belongs to one or more of the form.
Differences between HTML 4.01 and HTML5
form attribute is new in HTML5 attributes.
grammar
<object form=" form_id ">
Property Value
值 | 描述 |
---|---|
form_id | 规定 <object> 元素所属的一个或多个表单的 id 列表,以空格分隔。 |
HTML <object> tag