Form Tag and Attributes

The <form> tag is used to collect user input. It can send data to a server using HTTP methods like GET or POST.

  • action: URL where the form submits data
  • method: GET or POST
  • name, id: Identifiers for JavaScript or styling
<form action="/submit" method="post">
  ...
</form>
← PrevNext →