Decoding HTML Forms

Report a typo

Consider the following HTML snippet:


<form action="/submit" method="post">
  <label for="firstName">First Name:</label>
  <input type="text" id="firstName" name="firstName">
  <input type="submit" value="Submit">
</form>

What are the roles of the 'action', 'method', and 'type' attributes in this form?

Select one or more options from the list

Create a free account to access the full topic