Submit & Reset Buttons
Buttons are defined by changing the input element’s type attribute.
There is two different kinds of buttons – the submit button and the reset button.
The submit button is used whenever you want to submit a form.
<input type=”submit” value=”Submit” >
The reset button is used to clear all inputs by the user.
<input type=”reset” value=”Reset” >
Here is an example of a simple form with both a submit button and a reset button.
Code
Output