PDF download Download Article
Create a reset button in HTML easily with these steps
PDF download Download Article

Want to give your visitor the ability to clear all form data they entered? This article will give you the code to input the button they'll need to clear their data.

Things You Should Know

  • Before you can create a reset button, you need to create an HTML form using the <form> tag.
  • Use the <input type="reset"> tag to create a reset button.
  • Place your reset button near the top or the bottom of the form so users can find it easily.
  1. Advertisement
  2. Type the <input type="reset"> tag into the code towards the top and/or bottom of the HTML form.
  3. Try it out, to see if it works correctly; click a selection or type a value and then click the reset button.
  4. Advertisement

Community Q&A

Search
Add New Question
  • Question
    I have done the coding right, but the reset won't work. What should I do?
    Community Answer
    Community Answer
    if you are trying to reset the HTML form's fields by clicking a button, you should call a javascript function through that button and, in that function, you would be able to access all HTML forms' input fields and reset them to whatever you want.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

  • Give the input boxes you ask the visitor to enter, values into names with the 'name="NameHere" attribute.
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

You Might Also Like

Advertisement

About This Article

CB
Co-authored by:
Tech Enthusiast
This article was co-authored by Christopher Batchelor. Christopher Batchelor is a wikiHow community member and technology enthusiast. He has experience using a range of different platforms and software, and likes to keep up with updates and new features. This article has been viewed 99,044 times.
How helpful is this?
Co-authors: 4
Updated: June 26, 2023
Views: 99,044
Categories: HTML
Thanks to all authors for creating a page that has been read 99,044 times.

Is this article up to date?

Advertisement