HTML Forms and Elements:
- HTML forms are used to collect user input.
- HTML forms are useful in web development.
- Forms enable website users to submit data via the web pages.
- HTML forms contain form elements.
- Form elements are different types like input elements, checkboxes, radio buttons, submit buttons, and many more.
- The <form> element defines an HTML form :
<form>
......
form elements
......
</form>
The <form> tag has three properties (or attributes) that control how and where the form is processed.
| Property | Description |
| name | Allows you to identify different forms |
| method | post – sends form to the server get – brings info from the server |
| action | Destination form or webpage |
Syntax:
<form name=”Test” method=”post” action=”destination.html”>