|
Very Simple (but useful) Introduction to Forms:
This is a functional use of the <form> tags to send users to a
new Web address by clicking on a generic button. This type of application
will work without the necessity for server-side scripts and programming.
<form> Tag & Attributes:
<form Contains all elements of the <form>
method="get | post"
procedure to process the information
action="what will
happen"> usually a URL to a CGI or HTML
document
</form>
<input> Tag & Attributes:
<input sets up receiving input from the user
type="submit"
creates a button to carry out the action
value="button message"
the label visible on the button
>
Example Code:
<form method="get"
action="http://www.yahoo.com">
<input type="submit"
value=" Click Me " />
</form>
The Result:
|