
HTML Forms
HTML forms are areas which contain form characters.
What is Form Fields?
Form Fields can be defined as characters which permit the user to enter data in the forms. Examples of Form Fields are textarea, textfields, drop-down menus, checkboxes, etc.
HTML Forms are defined with form tags : <form>
<form>
<input>
<input>
</form>
The Input Tag:
The <input> tag is the most used form tag. The type attribute within the input tag defines the type of input. Examples of the commonly used types are given below:
Text Fields: Email address: Checkboxes:
Text fields are areas where you are supposed to type. However, it should be kept in mind that the form is not visible in the browser. Most of the browsers have a width of 20 characters by default.
An example of Text Field and its appearance in the browser is given below:
<form>
First name:
<input type=“text” name=“email adress”>
<br>
Last name:
<input type=“text” name=“password”>
</form>
This would appear in the browser as:
Password:
Checkboxes are commonly used for giving someone choices.
<form>
My school is good:
<input type=“checkbox” name=“school” value=“good” />
<br />
My school is bad:
<inout type=“checkbox” name=“school” value=“bad” />
</form>
It would appear in the browser as:
My school is good:


