asp.net.ph

Skip Navigation Links

INPUT type=reset Element

HTML Elements


Creates a reset button.HTML 2, 3.2, 4, 4.01, 5

HTML Syntax

Remarks

The INPUT type=reset element renders a button that, when clicked, resets the form's controls to their initial values.

The default button label is application-specific, but authors can use the value attribute to provide a noneditable label to be displayed on the button.

Members

INPUT Members

Example

The following sample shows a simple form that allows the user to enter a first name, last name, email address, and gender. When activated, the reset button resets all controls to their initial values.

First name:
Last name:
email:
Male Female

Below is the HTML fragment for the sample above.

<form>
<table bgcolor="khaki" cellspacing=10>
<col align="right">
<tr>
   <td>First name:</td>
   <td><input type="text" name="firstname"></td></tr>
<tr>
   <td>Last name:</td>
   <td><input type="text" name="lastname"></td></tr>
<tr>
   <td>email:</td>
   <td><input type="text" name="email"></td></tr>
<tr>
   <td colspan=2 align="center">
   <input type="radio" name="sex" value="Male"> Male 
   <input type="radio" name="sex" value="Female"> Female
</td></tr>
<tr>
   <td colspan=2 align="center">
   <input type="Submit" value="Send">
   <input type="Reset" value="Reset"></td></tr>
</table>
</form>
See Also

BUTTON   INPUT   reset Method



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note