On this page
  1. <button>
  2. Summary
  3. Notes & Best Practices
  4. Example

<button>

Prev: `<input>` | Up: forms | Next: `<textarea>`
Rel: forms, Forms & Inputs Guide
Ref: MDN Web Docs — <button>
Tags: #public #web #html #elements #forms #tier/core


Summary

Clickable action control with built-in keyboard activation (Enter/Space).

Notes & Best Practices

Example

<form action="/save" method="post">
  <button type="button" id="cancel">Cancel</button>
  <button type="submit">Save</button>
</form>

Linked from

Related notes