HTML Output Prediction Easy +10 XP
Button Type Default
What type does a button have by default inside a form?
HTMLRead-only
<form> <button>Submit</button> </form>
What is the output?
Show answer and explanation
Answer: submit
A <button> inside a form defaults to type='submit', which submits the form. Use type='button' to prevent this.
Hint: What happens when you click this button?
What this challenge tests
Output Prediction in HTML: forms, buttons.