input — HTML 4.01 | HTML5
HTML: <input>; XHTML: <input/> or <input />
input element is used to
create a variety of form input controls. The type of control is
defined by the
Following is a complete list of attributes (with descriptions) that
can be used with the
Not all attributes can be used with all control types. The attributes
associated with each control type are listed below.
HTML5 adds a number of new values for the
color. New HTML5 attributes for the
input element are listed below.
This is an empty element. In HTML, the end tag is forbidden. In XHTML, the element must be closed with a trailing slash as just shown. Developers may include a space character before the slash for backward compatibility with older browsers.
onchange, HTML5 Global
Specifies a comma-separated list of content types that a server processing the form will handle correctly. It can be used to filter out nonconforming files when prompting a user to select files to send to the server.
Assigns an access key (keyboard shortcut) to an element for quicker access.
Deprecated. Not in HTML5. Specifies the alignment of an image.
Specifies alternative text for an image used as a button.