HTML submit and Reset Button and Its Example

aimtocode

HTML Submit :

<input> elements of type submit are rendered as buttons. When the click event occurs (typically because the user clicked the button), the user agent attempts to submit the form to the server. The submit value of input displays a Submit button on a form. Clicking this button will submit the form data.

HTML Reset :

<input> elements of type Reset are rendered as buttons. When the click event occurs (typically because the user clicked the button), the user agent attempts to reset the form to the server. The reset value of input a reset button on a form. Clicking this button will reset the form data.



Submit & Reset Example :


Output:


First name:
Last name:

aimtocode