HTML FORMS
UNDERSTANDING AND WORKING WITH HTML FORMS
• HTML Forms are required when you want to collect some data from the site visitor. For
example, during user registration you would like to collect information such as name,
email address, credit card, etc.
• A form will take input from the site visitor and then will post it to a back-end application
such as PHP script etc. The back-end application will perform required processing on the
passed data based on defined business logic inside the application.
• There are various form elements available like text fields, textarea fields, drop-down
menus, radio buttons, checkboxes, etc.
Form Controls: There are different types of form controls that you can use to collect data using
HTML form. Some of are given below
• Text Input Control
o Single Line Text Input
o Multiline Text Input (textarea)
• Date Input Control:
• Datetime Input Control
• Time Input Control
• File Input Control
• Color Input Control
• Email Input Control
• Radio buttons Control
• Checkboxes Controls
• Select (Dropdown) Control
• Submit and Reset Buttons
Write the following code and save the file with name myForm.html and observe
the result.