The <button>
tag defines a clickable button.
Inside a <button>
element you can put text (and tags like <i>
, <b>
, <strong>
, <br>
, <img>
, etc.). That is not possible with a button created with the <input>
element!
Tip: Always specify the type
attribute for a <button>
element, to tell browsers what type of button it is.
Tip: You can easily style buttons with CSS! Look at the examples below or visit our CSS Buttons tutorial.
Example of HTML <button> Tag | HTML Button |
Definition and Usage of HTML <button> Tag | HTML Button |
Browser Support of HTML <button> Tag | HTML Button |
Attributes of HTML <button> Tag | HTML Button |
Global Attributes of HTML <button> Tag | HTML Button |
Event Attributes of HTML <button> Tag | HTML Button |
How to add A clickable button is marked up as follows | HTML Button |
How to Use CSS to style buttons | HTML Button |
How to Use CSS to style buttons (with hover effect) | HTML Button |
What is HTML <button> Tag | HTML Button |
Category: | Web Tutorial |
Sub Category: | HTML Button |
Uploaded by: | Admin |