Attributes · <button>
Which HTML Button attributes matter?
These attributes decide how the <button> behaves and what actually gets emailed to your inbox when someone submits.
| Attribute | What it does |
|---|---|
type | submit (default — sends the form), reset (clears all fields), or button (no built-in behaviour — wire it to JavaScript). |
name | Submitted with the form when the button is the activator, along with its value. |
value | The value sent with the button's name when it triggers the submit. |
disabled | Boolean. Greys the button out and stops it from firing. |
formaction | Overrides the parent <form action> for this button only — handy for multiple submit targets. |
formmethod | Overrides the form's method (get/post) for this button. |




