HTML form attribute
HTML form attribute associates input element with a specific form.
Attribute values
All possible values of form attributeThe value of form attribute is the id of the <form> element. Although 'email' is outside the form but still a part of the form because of this attribute.
Related Tags
The tags that support form attribute<button> tag
-
button element defines a button labeled by the content. form attribute is also applicable on the button element.
<fieldset> tag
-
fieldset element encloses a form structure in a box. It also supports the form attribute.
<input> tag
-
input tag defines an input field where a user can enter the required information. input tag supports form attribute.
<label> tag
-
label tag is used to write captions. for attribute is applicable on the label element.
<select> tag
-
select tag offers different options in the form of drop down list.