HTML - Reset Buttons

  »   HTML forms  »   HTML Tutorial - Reset Buttons

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.

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

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

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

Demo



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.

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

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

</form>

Demo



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