HTML and CSS Reference
In-Depth Information
Name
input
Synopsis
<input> (XHTML: <input/> or <input /> )
The input element is used to create a variety of form input controls. The type of control is
defined by the type attribute. Following is a complete list of attributes (with descriptions) that
can be used with the input element. Not all attributes can be used with all control types. The
attributes associated with each control type are listed below.
Usage
Categories:
Flow content, phrasing content. If the type attribute is not in the Hidden state, then inter-
active content, palpable content, as well as “listed, labelable, submittable, and resettable
form-associated content.” If the type attribute is in the Hidden state, then “listed, submit-
table, and resettable form-associated content.”
Permitted contexts:
Where phrasing content is expected
Permitted content:
Empty
Start/end tags:
This is an empty (void) element, meaning it has only a start tag and may not have any con-
tents. In HTML, the end tag is forbidden. In XHTML, the element must be closed with a
trailing slash ( <input/> or <input /> ).
Attributes
HTML5 Global Attributes
Search WWH ::




Custom Search