The Form Element

The form element is used to collect information, but we need to send the form data somewhere for processing. That's why the form element has two attributes:

  • action, which specifies the URL where the form data is sent.
  • method, which specifies the HTTP request method. The most common value used in forms is POST.

For now, you don't need to know what an HTTP request is.

<form action="/processing.html" method="POST">
</form>

Instructions

Create a form element with the attributes: action with the value /exercise.html, method with the value POST

Start programming for free

By signing up, you agree to the Terms of Service and Privacy Policy.

Or sign up with:

2/9

The Form Element | Start Coder