HTML and CSS Reference
In-Depth Information
Attributes Defined by Internet Explorer
contenteditable="false | true | inherit" (5.5)
datafld="name of column supplying bound data" (4)
dataformatas="html | text" (4)
datasrc="id of data source object supplying data" (4)
hidefocus="true | false" (5.5)
language="javascript | jscript | vbs | vbscript" (4)
unselectable="on | off" (5.5)
HTML 4 Event Attributes
onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown,
onmousemove, onmouseout, onmouseover, onmouseup
HTML5 Event Attributes
onabort, onblur, oncanplay, oncanplaythrough, onchange, onclick,
oncontextmenu, ondblclick, ondrag, ondragend, ondragenter, ondragleave,
ondragover, ondragstart, ondrop, ondurationchange, onemptied, onended,
onerror, onfocus, onformchange, onforminput, oninput, oninvalid, onkeydown,
onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart,
onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel,
onpause, onplay, onplaying, onprogress, onratechange, onreadystatechange,
onscroll, onseeked, onseeking, onselect, onshow, onstalled, onsubmit,
onsuspend, ontimeupdate, onvolumechange, onwaiting
Events Defined by Internet Explorer
onactivate, onafterupdate, onbeforeactivate, onbeforecut, onbeforedeactivate,
onbeforeeditfocus, onbeforepaste, onbeforeupdate, oncontextmenu, onclick,
oncontrolselect, oncut, ondblclick, ondeactivate, ondragenter, ondragleave,
ondragover, ondrop, onerrorupdate, onfilterchange, onfocusin, onfocusout,
onhelp, onkeydown, onkeypress, onkeyup, onlosecapture, onmousedown,
onmouseenter, onmouseleave, onmousemove, onmouseout, onmouseover, onmouseup,
onmousewheel, onmove, onmoveend, onmovestart, onpaste, onpropertychange,
onreadystatechange, onresize, onresizeend, onresizestart, onselectstart
Element-Specific Attributes
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 takes an attribute value of
autofocus
when using the XML-style syntax
for XHTML5.
form
This HTML5 attribute should be set to a string that corresponds to the
id
of the form
element that the 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
Under HTML5 this attribute is set to the MIME type for how data should be
transmitted to the URL specified in the
action
attribute. Common values include