The Reset button

There are times that you will fill in a form, realize that you're filling it out completely wrong, and will want to start over from the beginning. This tag:

<input type="reset" value="legend" />

will put a button on the screen with the legend you specified. When you click the button, your form will be reset to the way it was when you first entered it. You'll notice that we didn't give the reset button a name= attribute, since its value will never be sent over to the server.

Below is the subscription form, using all the form elements we've discussed so far. It has several fields pre-filled. Change some entries, add others, and then click the Reset button. You'll see the form return to its pristine state. See the HTML for this form.
Yes! I want to subscribe to Mag-O-Zine

First Name: Last Name:
Address:
City: State: Zip:

Subscribe for: 1 year ($19.95) 2 years ($35.00)

Send me more information about:
Computer-Zine
Fisher-Zine
Cat-O-Zine

Special instructions:

 backText Areas  Index Summarynext