A form can contain any number of input elements: : Introduction « Form « JavaScript Tutorial






is the main HTML input element.

The type attribute of determines what type of input control is displayed:

  1. is a single-line text box.
  2. is a radio button.
  3. is a check box.
  4. is a file upload text box.
  5. is a password text box (where characters are not displayed as you type).
  6. is a generic button that can be used to cause a custom action.
  7. is a button whose sole purpose is to submit the form.
  8. is a button whose sole purpose is to reset all fields in the form to their default values
  9. is an input field that isn't displayed on screen.
  10. is an image that is used just like a Submit button.