Skip to main content
HTML Output Prediction Hard +35 XP

Form Method

What HTTP method does this form use by default if method is omitted?

HTMLRead-only
<form action="/submit">
  <input name="q">
</form>

What is the output?

Show answer and explanation

Answer: GET

The default method for HTML forms is GET. You must explicitly set method='post' to use POST.

Hint: What is the default form method?

What this challenge tests

Output Prediction in HTML: forms, http.

Related challenges