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 isPOST
.
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
2/9