Form Tag

The <form> tag will create a form on your page.

<form method="post" action="someScript.php">
   Your name:  <input type="text" name="name"><br>
   <input type="submit">


  • action - Location of the form processing script.
  • autocomplete - Should the form auto complete fields.
    • on
    • off
  • enctype - Defines how the form should be encoded by the processing script.
    • application/x-www-form-urlencoded
    • multipart/form-data
    • text/plain
  • method - HTTP method used to send the form data.
    • get
    • post
  • name - The name of the form
  • target - Where the form should submit to.
    • _blank
    • _self
    • _parent
    • _top

Help Us to Help You

This website and it's tutorials are only made possible with your support. Support money goes towards keeping our servers online.


Link to Us

Spread the word! Let people know about our tutorials by placing links on blogs, websites, forums and other places.


Copyright 2019 Step By Step HTML. All Rights reserved.