All attributes in this Collection are declared by Intrinsic Events Module and are of type Script
onclickondblclickonmousedownonmouseuponmouseoveronmousemoveonmouseoutonkeypressonkeydownonkeyupAll attributes in this Collection may be used on most elements in the Element Index - all except: base, bdo, br, head, html, meta, param, script, style, title.
The attributes in the Events Attribute Collection are used to specify scripting code which is to be executed when the appropriate event occurs.
If you use any of the attributes in this Collection (of indeed any Type Script), the MIME type of the scripting language used should always be provided in a Content-Script-Type HTTP header.
It is good practice not to use these attributes, however,
and instead to include external scripts (via
script elements)
which add any handlers unobtrusively. This makes code more self-contained and
also the XHTML is easier to maintain if it doesn't contain any events attributes.