Skip to content

Button tag in HTML

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>