How to specify the type of button using HTML5 ? Last Updated : 31 Mar, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report 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. Syntax: <button type="button|submit|reset"> Example: HTML <!DOCTYPE html> <html> <head> <title> HTML button type Attribute </title> </head> <body> <h1>GeeksforGeeks</h1> <h3>Specifying the Button type</h3> <form action="#" method="get"> Username: <input type="text" name="uname"> <br><br> Password: <input type="password" name="pwd"> <br><br> <button type="submit" value="submit"> Submit </button> <button type="reset" value="reset"> Reset </button> </form> </body> </html> Output: button type Comment More infoAdvertise with us Next Article How to specify that a button should be disabled using HTML5? S skyridetim Follow Improve Article Tags : Web Technologies HTML HTML-Tags HTML-Attributes Similar Reads How to specify the type of an input element using HTML ? In this article, we will specify the type of an input element using HTML. The HTML <input> type attribute is used to specify the type of <input> element to display. The default type of <input> type attribute is text. Syntax: <input type="value"> Attribute Values: button: It i 4 min read How to specify that a button should be disabled using HTML5? In this article, we specify a disabled Button by using a disabled attribute in a <Button> Element. A disabled button is un-clickable and unusable. It is a boolean attribute. Syntax: <button disabled></button> Example: html <!DOCTYPE html> <html> <head> <title 1 min read How to use URL of the image as a submit button in HTML ? The HTML <input> type attribute is used to specify the type of <input> element to display. The default type of <input> type attribute is text. In this article, we set the image as button value. It creates the image as the submit button. Syntax: <input type="image"> Attribute 1 min read How to add icons in the button in HTML ? Adding icons in buttons in HTML involves including visual symbols or images within buttons to enhance their appearance and usability. This can be done using icon libraries like Font Awesome, Bootstrap Icons, or Material Icons, or by inserting images directly with <img> tags for visual cues.Add 3 min read HTML DOM Button type Property The Button type Property is used to set or return the value of a type attribute of a <button> element. Syntax: It returns the type property.buttonObject.typeIt sets the type property.buttonObject.type = "submit|button|reset"Property Values: Property Value Description submit It defines a sub 2 min read HTML <input type = "button"> The HTML <input type="button"> element creates a clickable button that can be customized with text or an image. It does not have any default behavior but can be used to perform actions using JavaScript. It makes versatile for various interactive purposes in web forms and applications. Syntax 1 min read Like