Comparison
What is the difference between input type=button and button type=button?
Both are plain buttons for JavaScript: neither submits nor resets the form. An <input type="button"> is a void element whose label is the plain-text value; a <button type="button"> can wrap HTML such as an icon and a span. See the full HTML button reference.
| Topic | <input type="button"> | <button type="button"> |
|---|---|---|
| Label | The value attribute; a browser default if missing | The content between the tags |
| Content allowed | Plain text only | Text, icons and other phrasing HTML |
| Submits the form | No | No |
| Sent in FormData | No, never part of the form data | No, unless it is type="submit" and was clicked |
| Keyboard | Enter and Space activate it natively | Enter and Space activate it natively |
Sources: WHATWG HTML Standard: Button Button state · MDN: <button>




