HTML Forms: Controls

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 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