HTML - Reset

The reset buttons are used for bigger forms usually, in case the user has mistyped the majority of the information introduced, therefore wanting to erase the entire introduced text.

<input type="reset" value="Reset" />

<input type="reset" value="Delete" />

<input type="reset" value="Clear form " />

Display


HTML- The reset button action

For the reset button to be functional will be needed to introduce it in the <form> tag. You can read the tutorial about HTML Forms for more examples.

<form action="myphp.php" method="post">

<input type="text" size="15" maxlength="15" />

<input type="text" size="25" maxlength="25" /> <input type="reset" value="Delete" />

</form>

 

Try to insert a little text and click "Delete" button in the example above.