HTML Forms
HTML Forms
HTML Forms on web pages collect information from users. For example, A Contact Form collects the user’s name, e-mail address, and inquiry text.
HTML form is a part of a document containing content, markup, and special web elements called controls like checkboxes, radio buttons, menus, text boxes, list boxes, etc. Forms are used to select different kinds of user input. Form elements allow users to enter information like text fields, text area fields, drop-down menus, radio buttons, checkboxes, etc., into a form.
An HTML form contains one or more input fields and a Submit button. When the user enters information in the form fields and clicks on the Submit button, the information is sent to the web server, a software application that hosts the HTML web page online on a particular domain.
Syntax
A <form> tag is used to create an HTML form. The general syntax of the form is as follows:
<form>
…..
</form>
The form is a paired tag. In the form tag, you can place <input> tags that allow
users to interact with the form.
Example
<form>
<input>
<input>
</form>
—
HTML Tutorials
HTML Tutorials on this website: