Two button elements that act as one submit button and one reset button (in a form):
The type attribute is supported in all major browsers.
The type attribute specifies the type of button.
Tip: Always specify the type attribute for the <button> element. Different browsers may use different default types for the <button> element.
|button||The button is a clickable button|
|submit||The button is a submit button (submits form-data)|
|reset||The button is a reset button (resets the form-data to its initial values)|
Your message has been sent to W3Schools.