HTML and CSS Reference
onpropertychange, onreadystatechange, onresize (button, file, image,
password, reset, submit, text), onresizeend, onresizestart, onselectstart
(all types except hidden), ontimeerror
accept This attribute is used to list the MIME types accepted for file uploads when using a
file upload control ( <input type="file"> ).
align With image form controls ( type="image" ), this attribute aligns the image with
respect to surrounding text. The HTML 4.01 transitional specification defines bottom , left ,
middle , right , and top as allowable values. Netscape and Microsoft browsers might also
allow the use of attribute values such as absbottom or absmiddle . Like other presentation-
specific aspects of HTML, the align attribute is dropped under the strict HTML 4.01
alt This attribute is used to display an alternative description of image buttons for text-
only browsers. The meaning of alt for forms of <input> beyond type="input" is not
autocomplete This Microsoft-specific attribute is used to indicate whether or not the form
field should be automatically filled in. The default value is no . HTML5 also supports this
autofocus This HTML5 Boolean attribute is used to indicate that the user agent should
immediately focus this form item once its containing window object (usually the document)
is made active. It only takes an attribute value of autofocus when using the XML-style
syntax for HTML5. It is not defined for <input type="hidden"> .
checked The checked attribute should be used only for check box ( type="checkbox" )
and radio ( type="radio" ) form controls. The presence of this attribute indicates that the
control should be displayed in its checked state.
disabled This attribute is used to turn off a form control. Elements will not be submitted,
nor will they receive any focus from the keyboard or mouse. Disabled form controls will not
be part of the tabbing order. The browser also might gray out the form that is disabled, to
indicate to the user that the form control is inactive. This attribute requires no value.
dynsrc In the Microsoft implementation, this attribute indicates the URL of a movie file and
is used instead of the src attribute for <input type="image"> .
form This HTML5 attribute should be set to a string that corresponds to the id of the form
element that an interactive control such as a button is associated with. This allows form
elements in one form to trigger actions in others.
formaction This HTML5 attribute specifies a URL to target when the button is clicked,
similar to the use of the action attribute on a form element.
formenctype This attribute indicates how form data should be encoded before being sent to
the server. The default is application/x-www-form-urlencoded . This encoding replaces