HTML <form> Element Reference

The HTML <form> element groups controls that collect and submit user input.

<form>

HTML <form> Element Reference

The HTML <form> element groups controls that collect and submit user input.

Categories

  • Forms

Tag omission

Consult the HTML Living Standard for the precise tag-omission rules.

Content model

  • Detailed content-model guidance will be added to this reference.

Attributes

Examples

Example

A practical form element example.

<form action="/search" method="get">
  <label>Search <input name="q"></label>
  <button>Search</button>
</form>

Related references

Description

The HTML <form> element groups controls that collect and submit user input.

References

  1. HTML Living Standard: Index of elements
  2. MDN: HTML <form> Element

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies