type attribute (button)
Sets the type of a button.
With this attribute you can create the same type of buttons as with the input element, but with a more complex value. The 'submit' and 'reset' values have effect only within a form element.
String that sets the type of the button.
One of the following values:
|Default. Command button.|
|Reset button. The user can reset the contents of a form with this type of button.|
|Submit button. The user can submit (send to the server) the contents of a form with this type of button.|
Example HTML code 1:
This example illustrates the use of the type attribute:
Did you find this example helpful?
Supported by tags:
User Contributed Comments