Form Input Control | WebReference

Form Input Control

HTML 4.01 Element Reference

By Lee Underwood

Return to HTML 4.01 element index page

Name: Form Input Control

<input>

Description: Used to specify input methods for forms.

Browser Compatibility: NN: 1.0+ / IE: 2.0+ / Opera: 4+

Attributes:
  • accept
  • accesskey
  • align*
  • alt
  • checked
  • class
  • dir
  • disabled
  • id
  • lang
  • maxlength
  • name
  • onblur
  • onchange
  • onclick
  • ondblclick
  • onfocus
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmousemove
  • onmouseout
  • onmouseover
  • onmouseup
  • onselect
  • readonly
  • size
  • src
  • style
  • tabindex
  • title
  • type
  • usemap
  • value

* Deprecated

Code Example:

<form action="http://www.me.com/cgi/mail.pl" method=post name="mailform">
    <input name="firstname" type="text">
    <input type="submit" value="submit">
</form>

XHTML Notes: Because it is an empty element, the XHTML 1.0 specification requires a trailing slash: <input />




Created: March 15, 2005

URL: http://webreference.com/html/reference/specs/