form
Summary
The form attribute specifies the parent form of an html form element.
Applies to | [html/elements/input](/html/elements/input) |
---|
The value of the form attribute should be the id of a form that exists on the same page.
Notes
Note that a document conforming to the HTML specifications will never have nested form elements (the primary use for this attribute). However, javascript can make this situation occur.
Related specifications
- HTML5
- W3C Candidate Recommendation
See also
Related articles
HTML
form