Resetting the Form

If humans could fill out forms perfectly on the first try, there would be no erasers on pencils and no backspace key on your computer keyboard. You can give your visitors a reset button so that they can start over with a fresh form (including all the default values you’ve set).

To create a reset button:

1.
Type <input type="reset".
2.
If desired, type value="reset message" where reset message is the text that appears in the button. The default reset message is Reset.
3.
Type />.
Figure 17.46. You can use the value attribute to set any text you wish for the reset button.

Figure 17.47. The CSS from Figure 17.41 on page ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.