Content deleted Content added
m WP:CHECKWIKI error fixes using AWB (10823) |
→Standard attributes: added details |
||
Line 126:
==Standard attributes==
''Standard attributes'' are also known as ''global attributes'', and
Technically all standard attributes must be accepted by all elements, though they will not function with some
{| class="wikitable sortable"
!Tag
!id
!class
!style
!title
!dir
!lang
!xml:lang
!accesskey
!tabindex
|-
!{{MDNHTMLRef|param}}
Line 1,047:
===Event attributes===
The standard attributes include the ''event handler attributes''. They are all prefixed on-. They are: ''onabort, onautocomplete, onautocompleteerror, onblur, oncancel, oncanplay, oncanplaythrough, onchange, onclick, onclose, oncontextmenu, oncuechange, ondblclick, ondrag, ondragend, ondragenter, ondragexit, ondragleave, ondragover, ondragstart, ondrop, ondurationchange, onemptied, onended, onerror, onfocus, oninput, oninvalid, onkeydown, onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart, onmousedown, onmouseenter, onmouseleave, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel, onpause, onplay, onplaying, onprogress, onratechange, onreset, onresize, onscroll, onseeked, onseeking, onselect, onshow, onsort, onstalled, onsubmit, onsuspend, ontimeupdate, ontoggle, onvolumechange, onwaiting.''<ref name="globalattribute"/>
Event attributes, added in HTML version 4, allow an element to specify scripts to be run under specific circumstances. The table below lists some common event handler attributes, and some tags they can function with.
{| class="wikitable sortable" style="font-size:80%;"
|