HTML Tutorial

The language for building web pages.

HTML Forms

HTML Forms

An HTML form is used to collect user input. The user input is most often sent to a server for processing. Forms are defined with the <form> element.

Form Attributes:

  • action - Where to send form data (URL)
  • method - HTTP method: GET or POST
  • enctype - Encoding type (for file uploads: multipart/form-data)
  • novalidate - Disable browser validation

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics