HTML Button element
Text on button
To have text on the button, include it in the text between the button start and end tags.
type
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>