![]() |
VOOZH | about |
The form attribute is used to associate an <input> element with a specific <form> element. It allows the input field to be connected to a form even if it is placed outside the form tag.
Syntax:
<input form="form_id">Attribute Value: The form attribute contains a single value called form_id, which specifies the id of the <form> element the input belongs to.
Example: Illustrates the use of form attribute in <input> element.