Difference between revisions of "Web form"

From Market Ruler Help
Jump to: navigation, search
m
Line 24: Line 24:
 
* [[Tracking Forms (JavaScript)]]
 
* [[Tracking Forms (JavaScript)]]
 
* [[JavaScript onsubmit]]
 
* [[JavaScript onsubmit]]
* [[Saving information across pages and domain names]]
 
 
* [http://www.w3schools.com/html/html_forms.asp HTML Forms and Inputs at w3schools]
 
* [http://www.w3schools.com/html/html_forms.asp HTML Forms and Inputs at w3schools]

Revision as of 07:04, 19 January 2014

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