Web form

From Market Ruler Help
Revision as of 16:48, 17 May 2018 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A web form is the interactive aspect of the internet, which allows web site visitors to enter information into fields and send them to a web server for processing.

Web forms are generated using HTML and, sometimes, JavaScript, but the basic format in HTML is:

<form action="page-to-submit-to" method="post">
     <input type="text" name="email" value="" />
     <input type="submit" value="Sign up for our newsletter" />
</form>

The form tag delimits the elements on the form, and the input tags specify a place to enter their email address, and a button.

Web forms can contain the following types of elements:

  • Text field (type="text")
  • Password field (type="password")
  • Multiple lines of text (textarea input)
  • Radio buttons (type="radio")
  • Checkboxes (type="checkbox")
  • Buttons (type="button")
  • Submit buttons (type="submit")
  • Drop-down list (select tag)

See also