The form element
All HTML forms is encapsulated in the `<form>` element.
It is a block element, and a container like a <div>
. As you can see, it has two attributes. The action
defines the location (URL) where the form's data should be sent. The method
defines which HTTP method to send the data with (GET or POST). The action and method attributes will not be used in this course, but you can read more about sending data to the server here here.
Last updated
Was this helpful?