input element simply is not straightforward, as there
is much variation in the way an
input appears—and the
attributes it uses or requires—depending on the
type attribute specified. But whatever the
type, the feature that’s common to all
input elements is that they allow users to enter
The specific features of each kind of input are covered in the
section of this reference. Other type-specific attributes are
indicated as such in their own sections.
In addition to the standard
attributes listed in the syntax section, there is another attribute that
you might come across that is IE-specific,
autocomplete with values of
"off". As its name might suggest, the intention is
to allow the browser to remember and complete form fields for you.
However, because it is not cross-browser safe and is also ignored anyway
under certain circumstances (if the page was delivered over HTTPS or was
delivered with headers or a META tag that prevents caching), it is not the
most useful/reliable attribute to use on form inputs.
Use This For …
input element is used to capture user information. The
kind of control that’s used will vary on a case-by-case basis, as
It causes no compatibility issues, and has excellent support across all tested browsers.