HTML Buttons
Buttons trigger actions. There are two ways to create them: the <button> element and <input type="submit">.
Button Types
type="submit"— Submits the form (default inside a form)type="reset"— Clears all form fieldstype="button"— Does nothing by default (use with JavaScript)
<button> vs <input type="submit">
<button> is more flexible — you can put HTML inside it (icons, spans). <input type="submit"> only shows text.