Skip to content
Related Articles

Related Articles

Improve Article

HTML | <button> type Attribute

  • Last Updated : 18 May, 2019

The <button> type attribute is used to specify the type of button. It specifies the type attribute of <button> element. The default types of <button> element can vary from browser to browser.


<button type="button|submit|reset">

Attribute Values:

  • submit: It defines a submit button. It has a default value for all browser except Internet Explorer.
  • button: It defines a clickable button. It has a default value for Internet Explorer.
  • reset: It defines a reset button which is used to change the previous data from the form.


<!DOCTYPE html> 
            HTML button type Attribute
        <h3>HTML button type Attribute</h3
        <form action="#" method="get">
            Username: <input type="text" name="uname">
            Password: <input type="password" name="pwd">
            <button type="submit" value="submit">
            <button type="reset" value="reset">


Supported Browsers: The browser supported by HTML <button> type attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera

Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :