|
|
home
/ reference
/ html
<form></form>

action
method
enctype
target
name
The <form> tag is used to set apart a data input form and specifies the details about how the input from the form is handled.
<form action="">
| |
Description
| |
The action attribute is a URL that specifies where the results of the form should be sent. Usually this is the URL to a some sort of a CGI script.
|
Code
| |
<form action="URL"> . . . </form>
|
|
<form method="">
| |
Description
| |
The method attribute specifies the way in which data is sent to the action URL. The method attribute must be either get or post.
|
Code
| |
<form method="post"> . . . </form>
|
|
<form enctype="">
| |
Description
| |
The enctype attribute specifies the media encoding type of the data to be sent to the action URL. The default value for the enctype attribute is the MIME type 'application/x-www-form-urlencoded'.
|
Code
| |
<form enctype="MIMETYPE"> . . . </form>
|
|
<form target="">
| |
Description
| |
Similar to the <a> tag, the target attribute specifies the window location in which the form response should be sent to.
|
Code
| |
<form target="TARGET"> . . . </form>
|
|
<form name="">
| |
Description
| |
The name attribute may be any character string and is a way to identify the specific form for scripting puroposes.
|
Code
| |
<form name="NAME"> . . . </form>
|
|
|