HTML web forms are composed of checkboxes, buttons and text input fields that are placed inside of HTML documents to collect user input. For instance, if the web forms have fields such as names, phone number, and email addresses, it give the users an opportunity to communicate directly with a web page.
<form name=”myForm” action=”action.php” method=”post”>
<input type=”checkbox” /> Checkbox<br />
<input type=”text” /> Input Field<br />
<input type=”submit” value=”Submit” />
HTML form elements depend on action and method attributes to distinguish where to send the data in the form for the operation [action] and what are the procedure of the data [method].