HTML and CSS Reference
In-Depth Information
<input>
Function
Creates an input element within a form
accept
,
accesskey
,
align
,
alt
,
border
,
checked
,
class
,
dir
,
disabled
,
id
,
lang
,
maxlength
,
name
,
notab
,
onBlur
,
onChange
,
onClick
,
onDblClick
,
onFocus
,
onKeyDown
,
onKeyPress
,
onKeyUp
,
onMouseDown
,
onMouseMove
,
onMouseOut
,
onMouseOver
,
onMouseUp
,
onSelect
,
size
,
src
,
tabindex
,
taborder
Attributes
,
title
,
type
,
usemap
,
value
None in HTML;
</input>
or
<input ... />
in
XHTML
End tag
Contains
Nothing
Used in
form_content
You select the type of control to include in the form with the
<input>
tag's
type
attribute, and you name the field (used during the form submission
process to the server; see earlier description) with the
name
attribute. If
you do not specify it, the
type
field defaults to a value of
text
. Although
the value of the
name
attribute is technically an arbitrary string, we re-
commend that you use a name without embedded spaces or punctuation.