Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
THE WORLD'S LARGEST WEB DEVELOPER SITE

HTML <input type="reset">

❮ HTML <input> type attribute

Example

Define a reset button:

<input type="reset">
Try it Yourself »

Definition and Usage

The <input type="reset"> defines a reset button which resets all form values to its initial values.

Tip: Avoid reset buttons in your forms! It is frustrating for users if they click them by mistake.


Browser Support

Attribute
type="reset" Yes Yes Yes Yes Yes

Syntax

<input type="reset">

❮ HTML <input> type attribute