Button tag in HTML

Published: Friday, 18 January 2013

HTML Button element

Text on button

To have text on the button, include it in the text between the button start and end tags.


This can be either reset, submit, or button.

A submit type will post the HTML form.

A button type will do nothing by default. You can customise behaviour by attaching click events to it.

<button type="button">press me</button>