HTML & CSS · Junior · Question 10 of 75
What is the default type of a <button> inside a <form>?
- 1
button - 2
reset - ✓Correct answer:
submit
Explanation
By default a button inside a form has type="submit" and submits the form. It's a common source of bugs: a "Show password" button suddenly submits the form. Buttons that shouldn't submit need an explicit type="button".