Skip to content
Related Articles

Related Articles

How to specify the type of button using HTML5 ?

Improve Article
Save Article
  • Last Updated : 31 Mar, 2021
Improve Article
Save Article

To specify the button type in HTML5, we can use the HTML | <button> type Attribute. This attribute is used to specify the type of button. It specifies the type attribute of the <button> element. The default types of <button> elements can vary from browser to browser. 


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



<!DOCTYPE html> 
            HTML button type Attribute 
        <h3>Specifying the Button type</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"


button type

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!