The <input /> element is used to input data to Web servers using Web forms.
Depends upon the type (below).
- ondblclick (optional)
- onfocus (optional)
- onkeydown (optional)
- onkeypress (optional)
- onkeyup (optional)
- onmousedown (optional)
- onmousemove (optional)
- onmouseout (optional)
- onmouseover (optional)
- onmouseup (optional)
- onselect (optional)
- size
- src (optional)
- style (optional)
- tabindex (optional)
- title (optional)
- type (optional)
- usestyle (optional) (WebTV)
- value (optional)
The <input /> tag is a singleton tag and has no contents.
The <input /> tag is valid within the following tags:
- a
- acronym
- address
- applet
- b
- bdo
- big
- blockquote
- body
- caption
- center
- cite
- code
- dd
- del
- dfn
- div
- dt
- em
- fieldset
- font
- form
- h1
- h2
- h3
- h4
- h5
- h6
- i
- iframe
- ins
- kbd
- label
- legend
- li
- noframes
- noscript
- object
- p
- pre
- q
- s
- samp
- small
- span
- strike
- sub
- sup
- td
- th
- tt
- u
- var
An example of each type is shown on the corresponding information page:
The input tag is the primary method of getting information from the readers to the Web server.

