
Whether the command or control is checked Media capture input method in file upload controls Hint for expected file type in file upload controlsĪlt attribute for the image type. Attributes that are unique to particular input types-or attributes which are common to all input types but have special behaviors when used on a given input type-are instead documented on those types' pages.Īttributes for the element include the global HTML attributes and additionally: Those that are common to most or all input types are defined in greater detail below.

This table is followed by a list describing each attribute in greater detail, along with which input types they are associated with. This section provides a table listing all the attributes with a brief description. In addition, the way some attributes impact an input depends on the input type, impacting different input types in different ways.

However, in reality, most attributes have an effect on only a specific subset of input types. Since every element, regardless of type, is based on the HTMLInputElement interface, they technically share the exact same set of attributes. The element is so powerful because of its attributes the type attribute, described with examples above, being the most important.
