0% found this document useful (0 votes)
482 views14 pages

HTML Forms: Controls

HTML forms allow users to enter and submit information to a server. The <form> tag defines an HTML form and contains controls like text fields, checkboxes, and dropdown menus for user input. When submitted, all form field values are sent to the server address specified in the form's action attribute using the method defined. Common form field types include single-line text, passwords, text areas, checkboxes, radio buttons, dropdown menus, and submit/reset buttons.

Uploaded by

Karunakar Ella
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
482 views14 pages

HTML Forms: Controls

HTML forms allow users to enter and submit information to a server. The <form> tag defines an HTML form and contains controls like text fields, checkboxes, and dropdown menus for user input. When submitted, all form field values are sent to the server address specified in the form's action attribute using the method defined. Common form field types include single-line text, passwords, text areas, checkboxes, radio buttons, dropdown menus, and submit/reset buttons.

Uploaded by

Karunakar Ella
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

HTML FORMS

An HTML form is a section of a document


containing normal content, markup,
special
elements
called
controls
(checkboxes, radio buttons, menus, etc.),
and labels on those controls. Users
generally "complete" a form by modifying
its controls (entering text, selecting menu
items, etc.), before submitting the form to
an agent for processing (e.g., to a Web
server, to a mail server, etc.)

1. When a form is submitted, all fields on


the form are being sent.
2. The <form> tag tells the browser where
the form starts and ends. You can add all
kinds of HTML tags between the <form>
and </form> tags.
3. To let the browser know where to send
the content we add these properties to
the
4. <form> tag:

action=address
method=post or

The HTML <form> tag is used to create


an HTML form and it has following syntax:
<form action="Script URL" method="GET|
POST">
form elements like input, textarea etc.
</form>
A Script may be
<form method="post" action="http://www.echoecho.com/cgibin/formmail.cgi">

FORM FIELDS
These fields can be added to your forms:
1. Text field
2. Password field
3. Hidden field
4. Text area
5. Check box
6. Radio button
7. Drop-down menu
8. Submit button
9.Reset button
10. Image button

1. TEXT
Text fields are one line areas that allow
FIELD
the user to input text.

You might also like