Why do we use reset button in HTML forms?

HTMLWeb DevelopmentFront End Technology

The reset button is used to reset all the input fields in HTML forms. It gets added using the <input> tag attribute type.


You can try to run the following code to reset button in HTML forms −

Live Demo

<!DOCTYPE html>
         Student Name:<br>
         <input type="text" name="sname">
         Student Subject:<br>
         <input type="text" name="ssubject">
         <input type="reset" value="reset">
Updated on 18-Jun-2020 05:52:02