Back to Concepts

<button>

A clickable button.

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!

In The Wild

Seen in: Amazon

Buy Now

That orange 'Buy Now' button that takes your money? It's a <button> designed to be clicked.

📱

Live Example & Code

Preview Output
<button type="button" onclick="alert('Hello!')">Click Me!</button>
HTMLViz
© 2026 HTMLViz. Open Source Learning.