HTML reset button

What Is the HTML Reset Button?

It reset a form to its default values. Which appear at the time of loading your webpage. The value attribute of reset button appear on the button. Example


<form method="post" name="frmFullName">
  Enter First Name:<input type="text" name="firstname" id="firstname" />
  Enter Last Name:<input type="text" name="lastname" id="lastname" />
  <input type="submit" name="save" value="Save" /> 
  <input type="reset" name="clearform" value="Reset Form" />
</form>
Output

  Enter First Name:
  Enter Last Name:
   
  

FAQ 1. Does an HTML Reset Button Clear All Form Data Permanently? No, an HTML reset button does not permanently delete information stored on a server or database. It only restores the current form controls to their initial values in the browser. Any previously submitted information remains unchanged on the server. 2. Can I Customize the Appearance of an HTML Reset Button Using CSS? Yes, you can style an HTML reset button using CSS properties such as background-color, color, padding, border, font-size, and border-radius. These properties help you create a reset button that matches your website design.