HTML Forms
The Form Element
The HTML <form> element is used to create an HTML form for
user input.
The form element is a container for different types of input elements, such as: text fields, checkboxes, radio buttons, submit buttons, etc.
HTML
CSS
JS
Action and Method
The action attribute defines the action to be performed when the
form is submitted (usually a URL to a server script).
The method attribute specifies the HTTP method to be used when
submitting the form data (usually GET or POST).
<form action="/submit" method="POST">...</form>
Quick Quiz
Which attribute specifies the URL where form data should be sent?
Enjoying these tutorials?