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

HTML Forms

HTML forms allow collecting data from site visitors, such as during registration. Forms contain elements like text fields, textareas, dropdowns, radio buttons, and checkboxes to collect data, and submit it to a backend app via a script. Common form controls include single-line and multiline text, dates, times, files, colors, emails, radio buttons, checkboxes, and dropdowns.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

HTML Forms

HTML forms allow collecting data from site visitors, such as during registration. Forms contain elements like text fields, textareas, dropdowns, radio buttons, and checkboxes to collect data, and submit it to a backend app via a script. Common form controls include single-line and multiline text, dates, times, files, colors, emails, radio buttons, checkboxes, and dropdowns.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

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.

You might also like