Home » HTML Button Type

HTML Button Type

by Online Tutorials Library

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:

  1. Button: The button value is used for the clickable button.
  2. Submit: The submit value is used for submitting the form-data.
  3. Reset: The reset value is used to reset the values of a form to its initial values.

Example:

Test it Now

Output:

HTML Button Type

Browser Support

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari
<Button type=””> Yes Yes Yes Yes Yes

Next TopicHTML Hide Element

You may also like