ckear html form code example
Example 1: reset button html
<input type="reset" value="Reset" />
Example 2: javascript reset form
document.querySelector("form").reset();
<input type="reset" value="Reset" />
document.querySelector("form").reset();