type=reset

FilterElements

HTML: <input type="reset">
XHTML: <input type="reset"/>  or  <input type="reset" />

Creates a reset button that clears the contents of the elements in a form (or sets them to their default values).

Start/End Tags

This is an empty element. In HTML, the end tag is forbidden. In XHTML, the element must be closed with a trailing slash as just shown. Developers may include a space character before the slash for backward compatibility with older browsers.

Specifications

  • HTML 4.01
  • HTML5

autofocus

Values: None in HTML. (autofocus="autofocus" in XHTML)
HTML5 only. Indicates the control should have focus (be highlighted and ready for user input) when the document loads.

disabled

Values: None in HTML. (disabled="disabled" in XHTML)
Disables the control for user input. It can be altered only via a script. Browsers may display disabled controls differently (grayed out, for example), which could be useful for dimming certain controls until required info is supplied.

form=

Values: id of the form owner
HTML5 only. Explicitly associates the input control with its associated form (its form owner). With this method, the input control does not need to be a child of the applicable form element.

name=

Values: text
Assigns a name to the control; a script program uses this name to reference the control.

value=

Values: text
Specifies the initial value for this control.
<input type="reset" value="Start Over">

Rendered Example