<input type="reset" /> Description:
The <input type="reset" /> tag sets the form elements back to their initial state when the form was first loaded.
<input type="reset" /> Web Browser Support:
- Netscape 2, 3, 4, 6, 7
- Mozilla 1
- Firefox 1
- Internet Explorer 2, 3, 4, 5, 6
- Opera 3, 4, 5, 6, 7, 8
- Safari 1
- WebTV / MSNTV
- AvantGo Palm OS
- AvantGo Windows CE
- HTML 3.2, 4.0
- XHTML 1.0
XHTML Forms Module XHTML Intrinsic Events Module
<input type="reset" /> Attributes:
- All the attributes of the input tag, plus:
- disabled (optional)
- readonly (optional)
- type="reset"
- usestyle (optional) (WebTV)
- value (optional)
- width (optional) (WebTV)
<input type="reset" /> Usage:
- standard reset button:
<form>
<input type="reset" />
</form> - reset field with changed wording:
<form>
<input type="reset" value="Clear the Form" />
</form>
- submit button with some styles added:
<form>
<input type="reset" value="Reset Me" style="background-color:#cc0000; color: #ffffff;" />
</form>
<input type="reset" /> Special Notes:
- The default wording on a submit button is "Reset".
- Many people confuse the reset button with a "clear all" type button. The reset button only clears the form if that was the initial state of the form. If the form was pre-populated with data, clicking the reset button will cause the form to go back to that state, not to blank out all the entries.
More <input type="reset" /> Information:
Return to the <input /> Element
Return to XHTML Element (HTML Tags) Library

