HTML Buttons — a practical guide to HTML buttons with clear examples you can reuse in real projects.
HTML Tutorial Series (36/79). Prefer one article? Read the complete HTML tutorial.
Short description
Inside forms, default type is submit — set `type="button"` for non-submit actions.
Buttons
<button type="submit">Save</button>
<button type="button">Cancel</button>
<button type="reset">Reset</button>