HTML Form
HTML Forms are used to send data across the web and are
often used as contact form to convertinformation input by a user
into Leads.HTML forms are used to pass data to the server.
The common elements used in HTML form are form
tag, input, textarea,, select, and label.
HTML Form Elements
1. HTML Form Tag
2. Input Tag
3. Input type password
4. Input type file
5. Radio Buttons
6. Checkbox
7. Select Dropdown
8. Textarea
9. Button
10. Fieldset
11. Contact Form Example
Create HTML Form
form is build inside <form> tag. See the code below
<form action="" method="get" name="enquiry">
/*Content*/
</form>
Form Attributes
HTML Form Attributes
Attribute Values Use
method get or post http get method submit form data but is
visible in url.
post includes data in body. more secure as
data is not visible to user in url
action path the backend file collecting form data
name any name name of form control
Attribute Name values Use
type text, password, file, radio, type
checkbox, button, submit, and defines type
reset of
input control.
size default value is 20 change size
of input
control
tabindex any numeric value used to define
a sequence
followed by
user when he
navigate
Attribute Name values Use
using Tab key
value any possible value set a default
value of input
control
maxlength n digits set maximum
characters
length
disabled "" disabled input
control, or
fieldset tag
checked "" choose
checkbox and
radio button