HTML form tag
HTML <form> tag defines a form that collects the data from the user. There are many other elements (input controls such as checkbox, radio buttons, button etc.) that form the structure of form. The values of those elements are sent to the server for processing.
<p>form attribute in the input element associates it with the form</p>
<form action="files/formtag.php" method="post">
Candidate name: <input type="text" name="cname"><br>
Email: <input type="email" name="cemail"><br>
Password: <input type="password" name="pass" ><br>
<input type="submit" name="submit"></p>
</form>
</>
form attribute in the input element associates it with the form
Tag omission
Both starting and ending tags are necessary for the form element.
Global Attributes
All the global attributes are applicable on the form element.
Next Previous
Was this article helpful?