Menu
Forms & Inputs
<form> Element
Wrap input controls so they can be submitted together.
1Form Basics
The action attribute points to the URL that handles submission, method picks GET (search) or POST (data changes). Browsers send all named controls inside the form.
Example Code
<form action="/signup" method="post">
<label for="email">Email</label>
<input id="email" name="email" type="email" required />
<button type="submit">Sign up</button>
</form>Finished reading?
Mark this topic as complete to track progress.