0% found this document useful (0 votes)
14 views

HTML Form

The document discusses HTML forms which are used to send data across the web such as in contact forms. HTML forms use elements like <form>, <input>, <textarea>, <select>, and <label> tags. The document also describes attributes used in HTML forms like method, action, name, type, size, tabindex, value, maxlength, disabled, and checked.

Uploaded by

Mansi Bavliya
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

HTML Form

The document discusses HTML forms which are used to send data across the web such as in contact forms. HTML forms use elements like <form>, <input>, <textarea>, <select>, and <label> tags. The document also describes attributes used in HTML forms like method, action, name, type, size, tabindex, value, maxlength, disabled, and checked.

Uploaded by

Mansi Bavliya
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

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

You might also like