101
Html <Button> Type
The type is an attribute of <button> element, which sets the type of the button as described in the following syntax:
Following are the three values of type attribute:
- Button: The button value is used for the clickable button.
- Submit: The submit value is used for submitting the form-data.
- Reset: The reset value is used to reset the values of a form to its initial values.
Example:
Output:
Browser Support
Element | ![]() | ![]() | ![]() | ![]() | ![]() |
<Button type=””> | Yes | Yes | Yes | Yes | Yes |
Next TopicHTML Hide Element