<form> Syntax
Syntax Diagram for <form>
Opening Tag |
Content |
Closing Tag |
Open |
Parameter |
= |
Value |
Close |
<form |
action |
= |
"url" |
> |
form text |
</form> |
method |
= |
method |
enctype |
= |
encryption |
script |
= |
url |
target |
= |
target |
<form> Description
The form, contained between <form> and </form>
tags, is where the user can input data and have it operated on by the
computer.
- action
- The "url" specifies the CGI (Common Gateway Interface) script that
is to process the input the user supplies
- method
- Specifies method of interfacing with the host computer. The method
"get" sends a URL build from the arguments, and "post"
sends the arguments to the URL.
- enctype
- Specifies the type of encryption to be applied to the information before
transmitting it.
- script
- Specifies the client-side script to process the form's input.
- target
- Specifies the frame that is to receive the output returned from the script
that processed the form's input.
Note that forms are often put into tables to align the prompt and the input
fields; this makes the page much more visually pleasing.
See also <input>, <select>, and <textarea>.
<form> Examples
This markup:
. . .causes the following to be displayed:
Last Modified: