From W3C Wiki
< HTML‎ | Elements‎ | input
Jump to: navigation, search

<input type="reset">

The reset button state represents a button that, when activated, resets the form.


  • If the element has a value attribute, the button's label must be the value of that attribute; otherwise, it must be an implementation-defined string that means "Reset" or some such.

HTML Attributes

  • name = string
    Gives the name of the input element.

  • value = string
    Gives the default value of the input element.


Example A

[try it]

<p><label>First name: <input type="text" name="fistname"></label></p>
<p><label>Last name: <input type="text" name="lastname"></label></p>
<p><label>E-mail: <input type="email" name="e-mail"></label></p>
<p><input type="submit" value="Submit"></p>
<p><input type="reset" value="Reset"></p>

Input reset01.png

HTML Reference

The HTML5 specification defines the Reset button state in RESET BUTTON STATE.