Difference between revisions of "Web form"

From Market Ruler Help
Jump to: navigation, search
m
 
Line 25: Line 25:
 
* [[JavaScript onsubmit]]
 
* [[JavaScript onsubmit]]
 
* [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]
 +
 +
[[Category:Glossary]]

Latest revision as of 16:48, 17 May 2018

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