On this page
  1. <form>
  2. Summary
  3. Notes & Best Practices
  4. Example

<form>

Prev: forms | Up: forms | Next: `<label>`
Rel: forms, Forms & Inputs Guide
Ref: MDN Web Docs — <form>
Tags: #public #web #html #elements #forms #tier/core


Summary

Container for interactive controls submitted to a server or handled via FormData.

Notes & Best Practices

Example

<form action="/search" method="get">
  <label for="q">Query</label>
  <input id="q" name="q" type="search" required />
  <button type="submit">Search</button>
</form>

Linked from

Related notes