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.