Adding buttons (HTML)
Use a button control to commit a command, like submitting or resetting a form. Buttons offer a simple way to trigger a command.
- Standard button
The standard button triggers an action that is defined by the developer.
- Submit button
The submit button submits a form that the user has filled out to the server, or triggers an action. It is activated when the user clicks the button or when the user presses the Enter key while the focus is on another control on the same form, except when that control is another button.
- Reset button
The reset button clears all the fields of a form so that the user can start over again. It has the same default style as the standard button.
Learn how to create different types of button controls.