HTML attribute: Difference between revisions

Content deleted Content added
Replaced content with '{{Html series}}'
Tag: blanking
Line 1:
{{Html series}}
An '''HTML attribute''' is a modifier of an ''[[HTML element|HTML element type]]''. An attribute either modifies the default functionality of an element type or provides functionality to certain element types unable to function correctly without them. In HTML syntax, an attribute is added to an ''[[HTML tags|HTML start tag]]''.
 
Several basic attributes types have been recognized, including: (1) ''required attributes'', needed by a particular element type for that element type to function correctly; (2) ''optional attributes'', used to modify the default functionality of an element type; (3) ''standard attributes'', supported by a large number of element types; and (4) ''event attributes'', used to cause element types to specify scripts to be run under specific circumstances.
 
Some attribute types function differently when used to modify different element types. For example, the attribute ''name'' is used by several element types, but has slightly different functions in each.<ref name="html4attributes">{{cite web | url=http://www.w3.org/TR/html4/index/attributes.html | title=Index of the HTML 4 Attributes | publisher=http://www.w3.org | accessdate=13 February 2015}}</ref>
 
==Description==
HTML attributes generally appear as name-value pairs, separated by <code>=</code>, and are written within the start tag of an element, after the element's name:
 
:<source lang="html4strict"><tag attribute="value">content to be modified by the tag</tag></source>
 
Where <code>tag</code> names the HTML element type, and <code>attribute</code> is the name of the attribute, set to the provided <code>value</code>. The value may be enclosed in single or double quotes, although values consisting of certain characters can be left unquoted in HTML (but not XHTML).<ref>{{cite web|url=http://www.w3.org/TR/html401/intro/sgmltut.html#h-3.2.2 |title=On SGML and HTML |publisher=World Wide Web Consortium |date=|accessdate=November 16, 2008}}</ref><ref>{{cite web|url=http://www.w3.org/TR/xhtml1/diffs.html#h-4.4|title=XHTML 1.0 - Differences with HTML&#160;4|publisher=World Wide Web Consortium|date=|accessdate=November 16, 2008}}</ref> Leaving attribute values unquoted is considered unsafe.<ref>{{cite web|first=Jukka|last=Korpela|url=http://www.cs.tut.fi/~jkorpela/qattr.html|title=Why attribute values should always be quoted in HTML|publisher=Cs.tut.fi |date=July 6, 1998|accessdate=November 16, 2008}}</ref>
 
Although most attributes are provided as paired names and values, some affect the element simply by their presence in the start tag of the element<ref name="tagshtml">{{cite web|url=http://www.w3.org/History/19921103-hypertext/hypertext/WWW/MarkUp/Tags.html |title=Tags used in HTML |publisher=World Wide Web Consortium |date=November 3, 1992 |accessdate=November 16, 2008}}</ref> (like the <code>ismap</code> attribute for the <code>img</code> element<ref>{{cite web|url=http://www.w3.org/TR/1999/REC-html401-19991224/struct/objects.html#adef-ismap|title=Objects, Images, and Applets in HTML documents |publisher=World Wide Web Consortium |date=December 24, 1999|accessdate=November 16, 2008}}</ref>).
 
Most elements can take any of several common attributes:
 
* The <code>id</code> attribute provides a document-wide unique identifier for an element.<ref>However, multiple identifiers may apply to the same element; in particular an element may be inside another element, each having an identifier.</ref> This can be used as [[CSS selector]] to provide presentational properties, by browsers to focus attention on the specific element, or by scripts to alter the contents or presentation of an element. Appended to the URL of the page, the URL directly targets the specific element within the document, typically a sub-section of the page. For example, the ID "Attributes" in <code><nowiki>http://en.wikipedia.org/wiki/HTML#Attributes</nowiki></code>
* The <code>class</code> attribute provides a way of classifying similar elements. This can be used for [[semantics|semantic]] purposes, or for presentation purposes. Semantically, for example, classes are used in [[microformat]]s. Presentationally, for example, an HTML document might use the designation <code>class="notation"</code> to indicate that all elements with this class value are subordinate to the main text of the document. Such elements might be gathered together and presented as footnotes on a page instead of appearing in the place where they occur in the HTML source. Another presentation use would be as a [[CSS selector]].
* An author may use the <code>style</code> non-attributal codes presentational properties to a particular element. It is considered better practice to use an element's <code>id</code> or <code>class</code> attributes to select the element with a stylesheet, though sometimes this can be too cumbersome for a simple and specific or ad hoc application of styled properties.
* The <code>title</code> attribute is used to attach subtextual explanation to an element. In most browsers this attribute is displayed as what is often referred to as a [[tooltip]].
 
The abbreviation element, <code>abbr</code>, can be used to demonstrate these various attributes:
 
:<source lang="html4strict"><abbr id="anId" class="aClass" style="color:blue;" title="Hypertext Markup Language">HTML</abbr></source>
 
This example displays as <span id="anId" class="aClass" style="color:blue;" title="Hypertext Markup Language">HTML</span>; in most browsers, pointing the cursor at the abbreviation should display the title text "Hypertext Markup Language."
 
Most elements also take the language-related attributes <code>lang</code> and <code>dir</code>.
 
==Varieties==
HTML attributes are generally classed as '''required attributes''', '''optional attributes''', '''standard attributes''', and '''event attributes'''. Usually the required and optional attributes modify specific HTML elements, while the standard attributes can be applied to most HTML elements.<ref>{{cite web|url=http://www.w3schools.com/tags/ref_standardattributes.asp|title=HTML / XHTML Standard Attributes|publisher=w3schools.com}}</ref> Event attributes, added in HTML version 4, allow an element to specify scripts to be run under specific circumstances.<ref>{{cite web|url=http://www.w3schools.com/tags/ref_eventattributes.asp|title=HTML / XHTML Standard Event Attributes|publisher=w3schools.com}}</ref>
 
==Required and optional==
 
===Used by one tag===
* {{MDNHTMLRef|applet}}: {{MDNHTMLRef|applet|code}}, {{MDNHTMLRef|applet|object}}
* {{MDNHTMLRef|area}}: {{MDNHTMLRef|area|nohref}}
* {{MDNHTMLRef|body}}: {{MDNHTMLRef|body|alink}}, {{MDNHTMLRef|body|background}}, {{MDNHTMLRef|body|link}}, {{MDNHTMLRef|body|text}}, {{MDNHTMLRef|body|vlink}}
* {{MDNHTMLRef|form}}: {{MDNHTMLRef|form|accept-charset}}, {{MDNHTMLRef|form|action}}, {{MDNHTMLRef|form|enctype}}, {{MDNHTMLRef|form|method}}
* {{MDNHTMLRef|frame}}: {{MDNHTMLRef|frame|noresize}}
* {{MDNHTMLRef|head}}: {{MDNHTMLRef|head|profile}}
* {{MDNHTMLRef|hr}}: {{MDNHTMLRef|hr|noshade}}
* {{MDNHTMLRef|html}}: {{MDNHTMLRef|html|xmlns}}
* {{MDNHTMLRef|img}}: {{MDNHTMLRef|img|ismap}}
* {{MDNHTMLRef|input}}: {{MDNHTMLRef|input|checked}}, {{MDNHTMLRef|input|maxlength}}
* {{MDNHTMLRef|label}}: {{MDNHTMLRef|label|for}}
* {{MDNHTMLRef|meta}}: {{MDNHTMLRef|meta|content}}, {{MDNHTMLRef|meta|http-equiv}}, {{MDNHTMLRef|meta|scheme}}
* {{MDNHTMLRef|object}}: {{MDNHTMLRef|object|classid}}, {{MDNHTMLRef|object|codetag}}, {{MDNHTMLRef|object|data}}, {{MDNHTMLRef|object|declare}}, {{MDNHTMLRef|object|standby}}
* {{MDNHTMLRef|ol}}: {{MDNHTMLRef|ol|start}}
* {{MDNHTMLRef|option}}: {{MDNHTMLRef|option|selected}}
* {{MDNHTMLRef|param}}: {{MDNHTMLRef|param|valuetype}}
* {{MDNHTMLRef|script}}: {{MDNHTMLRef|script|defer}}, {{MDNHTMLRef|script|xml:space}}
* {{MDNHTMLRef|select}}: {{MDNHTMLRef|select|multiple}}
* {{MDNHTMLRef|table}}: {{MDNHTMLRef|table|cellpadding}}, {{MDNHTMLRef|table|cellspacing}}, {{MDNHTMLRef|table|frame}}, {{MDNHTMLRef|table|rules}}, {{MDNHTMLRef|table|summary}}
* {{MDNHTMLRef|td}}: {{MDNHTMLRef|td|headers}}
 
===Used by two tags===
* {{MDNHTMLRef|a}} and {{MDNHTMLRef|area}}:
** coords — coordinates of an {{MDNHTMLRef|area|coords|v=1}} or a {{MDNHTMLRef|link|coords|v=1}} within it.
** shape — shape of an {{MDNHTMLRef|area|shape|v=1}} or a {{MDNHTMLRef|link|shape|v=1}} within it. Values: default, rect, circle, poly.
* {{MDNHTMLRef|a}} and {{MDNHTMLRef|link}}:
** [[hreflang]] — Language code of the linked document. ({{MDNHTMLRef|a|hreflang|v=1}}, {{MDNHTMLRef|link|hreflang|v=1}})
** rel — Nature of the linked document (relative to the page currently displayed). Free text for {{MDNHTMLRef|a|rel|v=1}}, but {{MDNHTMLRef|link|rel|v=1}} uses a set of terms (alternate, appendix, bookmark, chapter, contents, copyright, glossary, help, home, index, next, prev, section, start, stylesheet, subsection).
** rev — Nature of the currently displayed page (relative to the linked document). Varies for {{MDNHTMLRef|a|rev|v=1}} and {{MDNHTMLRef|link|rev|v=1}} as for rel.
* {{MDNHTMLRef|applet}} and {{MDNHTMLRef|object}}:
** archive — archive URL(s) ({{MDNHTMLRef|applet|archive|v=1}}, {{MDNHTMLRef|object|archive|v=1}})
** codebase — base URL ({{MDNHTMLRef|applet|archive|v=1}}, {{MDNHTMLRef|object|archive|v=1}})
* {{MDNHTMLRef|basefont}} and {{MDNHTMLRef|font}}:
** color — text color ''(deprecated)'' ({{MDNHTMLRef|basefont|color|v=1}}, {{MDNHTMLRef|font|color|v=1}})
** face — font family ''(deprecated)'' ({{MDNHTMLRef|basefont|face|v=1}}, {{MDNHTMLRef|font|face|v=1}})
* {{MDNHTMLRef|col}} and {{MDNHTMLRef|colgroup}}:
** span — number of columns spanned ({{MDNHTMLRef|col|span|v=1}}, {{MDNHTMLRef|colgroup|span|v=1}})
* {{MDNHTMLRef|del}} and {{MDNHTMLRef|ins}}:
** datetime — date and time of text {{MDNHTMLRef|del|datetime|t=deletion}} or {{MDNHTMLRef|ins|datetime|t=insertion}}.
* {{MDNHTMLRef|form}} and {{MDNHTMLRef|input}}:
** accept — types of files accepted when uploading {{MDNHTMLRef|form|accept|v=1}} or {{MDNHTMLRef|input|accept|v=1}}
* {{MDNHTMLRef|frame}} and {{MDNHTMLRef|iframe}}:
** frameborder — value (0 or 1) specifies whether to display a border around the {{MDNHTMLRef|frame|frameborder|v=1}} or {{MDNHTMLRef|iframe|frameborder|v=1}}.
** marginheight — top and bottom margins in pixels around the {{MDNHTMLRef|frame|marginheight|v=1}} or {{MDNHTMLRef|iframe|marginheight|v=1}}.
** scrolling — value (yes, no, auto) specifies whether to display scroll bars around the {{MDNHTMLRef|frame|scrolling|v=1}} or {{MDNHTMLRef|iframe|scrolling|v=1}}.
** marginwidth — left and right margins in pixels around the {{MDNHTMLRef|frame|marginwidth|v=1}} or {{MDNHTMLRef|iframe|marginwidth|v=1}}.
* {{MDNHTMLRef|frameset}} and {{MDNHTMLRef|textarea}}:
** cols — number of visible columns in {{MDNHTMLRef|frameset|cols|v=1}} or {{MDNHTMLRef|textarea|cols|v=1}} ''(some variation)''
** rows — number of visible rows in {{MDNHTMLRef|frameset|rows|v=1}} or {{MDNHTMLRef|textarea|rows|v=1}} ''(some variation)''
* {{MDNHTMLRef|img}} and {{MDNHTMLRef|object}}:
** usemap — specifies name of a map tag to use with {{MDNHTMLRef|img|usemap|v=1}} -or- URL of an image-map to use with {{MDNHTMLRef|object|usemap|v=1}}.
* {{MDNHTMLRef|input}} and {{MDNHTMLRef|textarea}}:
** readonly — specifies read-only text for {{MDNHTMLRef|input|readonly|v=1}} and {{MDNHTMLRef|textarea|readonly|v=1}}.
* {{MDNHTMLRef|link}} and {{MDNHTMLRef|style}}:
** media — specifies display device for {{MDNHTMLRef|link|media|v=1}} and {{MDNHTMLRef|style|media|v=1}}. Values: all, aural, braille, handheld, print, projection, screen, tty, TV.
* {{MDNHTMLRef|optgroup}} and {{MDNHTMLRef|option}}:
** label — description text for an {{MDNHTMLRef|optgroup|label|v=1}} or {{MDNHTMLRef|option|label|v=1}}.
* {{MDNHTMLRef|td}} and {{MDNHTMLRef|th}}:
** abbr — abbreviated version of a table {{MDNHTMLRef|td|abbr|t=cell}} or {{MDNHTMLRef|td|abbr|t=header}}.
** axis — category name for a table {{MDNHTMLRef|td|axis|t=cell}} or {{MDNHTMLRef|td|axis|t=header}}.
** colspan — number of columns spanned by a table {{MDNHTMLRef|td|abbr|t=cell}} or {{MDNHTMLRef|td|colspan|t=header}}.
** nowrap — ''(deprecated)'' prevents wrapping of a table {{MDNHTMLRef|td|nowrap|t=cell}} or {{MDNHTMLRef|td|nowrap|t=header}}.
** rowspan — number of rows spanned by a table {{MDNHTMLRef|td|rowspan|t=cell}} or {{MDNHTMLRef|td|rowspan|t=header}}.
** scope — no effect on normal browser display, but marks a table {{MDNHTMLRef|td|scope|t=cell}} or {{MDNHTMLRef|td|scope|t=header}} as a logical header for other cells. Values: col, colgroup, row, rowgroup.
 
===Used by multiple tags===
* '''align''' — {{MDNHTMLRef|applet|align|v=1}}, {{MDNHTMLRef|col|align|v=1}}, {{MDNHTMLRef|colgroup|align|v=1}}, {{MDNHTMLRef|object|align|v=1}}, {{MDNHTMLRef|tbody|align|v=1}}, {{MDNHTMLRef|td|align|v=1}}, {{MDNHTMLRef|tfoot|align|v=1}}, {{MDNHTMLRef|th|align|v=1}}, {{MDNHTMLRef|thead|align|v=1}}
:*align also deprecated in {{MDNHTMLRef|caption|align|v=1}}, {{MDNHTMLRef|div|align|v=1}}, {{MDNHTMLRef|h1|align|v=1}} to {{MDNHTMLRef|h6|align|v=1}}, {{MDNHTMLRef|hr|align|v=1}}, {{MDNHTMLRef|iframe|align|v=1}}, {{MDNHTMLRef|img|align|v=1}}, {{MDNHTMLRef|input|align|v=1}}, {{MDNHTMLRef|legend|align|v=1}}, {{MDNHTMLRef|p|align|v=1}}, {{MDNHTMLRef|table|align|v=1}}
* '''alt''' — {{MDNHTMLRef|applet|alt|v=1}}, {{MDNHTMLRef|area|alt|v=1}}, {{MDNHTMLRef|img|alt|v=1}}, {{MDNHTMLRef|input|alt|v=1}}
* '''bgcolor''' — {{MDNHTMLRef|body|bgcolor|v=1}}, {{MDNHTMLRef|table|bgcolor|v=1}}, {{MDNHTMLRef|td|bgcolor|v=1}}, {{MDNHTMLRef|th|bgcolor|v=1}}, {{MDNHTMLRef|bgcolor|tr|v=1}}
* '''border''' — {{MDNHTMLRef|img|border|v=1}}, {{MDNHTMLRef|object|border|v=1}}, {{MDNHTMLRef|table|border|v=1}}
* '''char''' — {{MDNHTMLRef|char|col|v=1}}, {{MDNHTMLRef|colgroup|v=1}}, {{MDNHTMLRef|tbody|v=1}}, {{MDNHTMLRef|td|v=1}}, {{MDNHTMLRef|tfoot|v=1}}, {{MDNHTMLRef|th|v=1}}, {{MDNHTMLRef|thead|v=1}}, {{MDNHTMLRef|tr|v=1}}
* '''charoff''' — {{MDNHTMLRef|col|charoff|v=1}}, {{MDNHTMLRef|colgroup|charoff|v=1}}, {{MDNHTMLRef|tbody|charoff|v=1}}, {{MDNHTMLRef|td|charoff|v=1}}, {{MDNHTMLRef|tfoot|charoff|v=1}}, {{MDNHTMLRef|th|charoff|v=1}}, {{MDNHTMLRef|thead|charoff|v=1}}, {{MDNHTMLRef|tr|charoff|v=1}}
* '''charset''' — {{MDNHTMLRef|a|charset|v=1}}, {{MDNHTMLRef|link|charset|v=1}}, {{MDNHTMLRef|script|charset|v=1}}
* '''cite''' — {{MDNHTMLRef|blockquote|cite|v=1}}, {{MDNHTMLRef|del|cite|v=1}}, {{MDNHTMLRef|ins|cite|v=1}}, {{MDNHTMLRef|q|cite|v=1}}
* '''compact''' — {{MDNHTMLRef|dir|compact|v=1}}, {{MDNHTMLRef|menu|compact|v=1}}, {{MDNHTMLRef|ol|compact|v=1}}, {{MDNHTMLRef|ul|compact|v=1}}
* '''disabled''' — {{MDNHTMLRef|button|disabled|v=1}}, {{MDNHTMLRef|input|disabled|v=1}}, {{MDNHTMLRef|optgroup|disabled|v=1}}, {{MDNHTMLRef|option|disabled|v=1}}, {{MDNHTMLRef|select|disabled|v=1}}, {{MDNHTMLRef|textarea|disabled|v=1}}
* '''height''' - {{MDNHTMLRef|applet|height|v=1}}, {{MDNHTMLRef|iframe|height|v=1}}, {{MDNHTMLRef|img|height|v=1}}, {{MDNHTMLRef|object|height|v=1}} . Also deprecated in {{MDNHTMLRef|td|height|v=1}}, {{MDNHTMLRef|th|height|v=1}}
* '''href''' — {{MDNHTMLRef|a|href|v=1}}, {{MDNHTMLRef|area|href|v=1}}, {{MDNHTMLRef|base|href|v=1}}, {{MDNHTMLRef|link|href|v=1}}
* '''hspace''' — {{MDNHTMLRef|applet|hspace|v=1}}, {{MDNHTMLRef|object|hspace|v=1}}. Also deprecated in {{MDNHTMLRef|img|hspace|v=1}}
* '''longdesc''' — {{MDNHTMLRef|frame|longdesc|v=1}}, {{MDNHTMLRef|iframe|longdesc|v=1}}, {{MDNHTMLRef|img|longdesc|v=1}}
* '''name''' — {{MDNHTMLRef|a|name|v=1}}, {{MDNHTMLRef|applet|name|v=1}}, {{MDNHTMLRef|button|name|v=1}}, {{MDNHTMLRef|form|name|v=1}}, {{MDNHTMLRef|frame|name|v=1}}, {{MDNHTMLRef|iframe|name|v=1}}, {{MDNHTMLRef|input|name|v=1}}, {{MDNHTMLRef|map|name|v=1}}, {{MDNHTMLRef|meta|name|v=1}}, {{MDNHTMLRef|object|name|v=1}}, {{MDNHTMLRef|param|name|v=1}}, {{MDNHTMLRef|select|name|v=1}}, {{MDNHTMLRef|textarea|name|v=1}}
* '''size''' — {{MDNHTMLRef|basefont|size|v=1}}, {{MDNHTMLRef|font|size|v=1}}, {{MDNHTMLRef|hr|size|v=1}}, {{MDNHTMLRef|input|size|v=1}}, {{MDNHTMLRef|select|size|v=1}}
* '''src''' — {{MDNHTMLRef|frame|src|v=1}}, {{MDNHTMLRef|iframe|src|v=1}}, {{MDNHTMLRef|img|src|v=1}}, {{MDNHTMLRef|input|src|v=1}}, {{MDNHTMLRef|script|src|v=1}}
* '''target''' — {{MDNHTMLRef|a||targetv=1}}, {{MDNHTMLRef|area|target|v=1}}, {{MDNHTMLRef|base|target|v=1}}, {{MDNHTMLRef|form|target|v=1}}, {{MDNHTMLRef|link|target|v=1}}
* '''type''' — {{MDNHTMLRef|button|type|v=1}}, {{MDNHTMLRef|input|type|v=1}}, {{MDNHTMLRef|li|type|v=1}}, {{MDNHTMLRef|link|type|v=1}}, {{MDNHTMLRef|object|type|v=1}}, {{MDNHTMLRef|ol|type|v=1}}, {{MDNHTMLRef|param|type|v=1}}, {{MDNHTMLRef|script|type|v=1}}, {{MDNHTMLRef|style|type|v=1}}, {{MDNHTMLRef|ul|type|v=1}}
* '''valign''' — {{MDNHTMLRef|col|valign|v=1}}, {{MDNHTMLRef|colgroup|valign|v=1}}, {{MDNHTMLRef|tbody|valign|v=1}}, {{MDNHTMLRef|td|valign|v=1}}, {{MDNHTMLRef|tfoot|valign|v=1}}, {{MDNHTMLRef|th|valign|v=1}}, {{MDNHTMLRef|thead|valign|v=1}}, {{MDNHTMLRef|tr|valign|v=1}}
* '''value''' — {{MDNHTMLRef|button|value|v=1}}, {{MDNHTMLRef|input|value|v=1}}, {{MDNHTMLRef|li|value|v=1}}, {{MDNHTMLRef|option|value|v=1}}, {{MDNHTMLRef|param|value|v=1}}
* '''vspace''' — {{MDNHTMLRef|applet|vspace|v=1}}, {{MDNHTMLRef|img|vspace|v=1}}, {{MDNHTMLRef|object|vspace|v=1}}
* '''width''' — {{MDNHTMLRef|applet|width|v=1}}, {{MDNHTMLRef|col|width|v=1}}, {{MDNHTMLRef|colgroup|width|v=1}}, {{MDNHTMLRef|hr|width|v=1}}, {{MDNHTMLRef|iframe|width|v=1}}, {{MDNHTMLRef|img|width|v=1}}, {{MDNHTMLRef|object|width|v=1}}, {{MDNHTMLRef|pre|width|v=1}}, {{MDNHTMLRef|table|width|v=1}}, {{MDNHTMLRef|td|width|v=1}}, {{MDNHTMLRef|th|width|v=1}}
 
==Standard attributes==
 
''Standard attributes'' are also known as ''global attributes'', and function with a large number of elements.<ref name="globalattribute">{{cite web|url=https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes |title=Global attributes - HTML (HyperText Markup Language) MDN |date=|accessdate=2015-02-12}}</ref> They include the basic standard attributes: these include ''accesskey, class, contenteditable, contextmenu, data, dir, hidden, id, lang, style, tabindex, title''. There are also some experimental ones. Both ''xml:lang'' and ''xml:base'' have been deprecated. The multiple ''aria-*'' attributes improve accessibility.<ref name="globalattribute"/> The event handler attributes are listed later on.
 
Technically all standard attributes must be accepted by all elements, though they will not function with some elements.<ref name="HTMLReference">{{cite web | url=https://developer.mozilla.org/en-US/docs/Web/HTML/Reference | title=HTML reference - HTML (HyperText Markup Language) MDN | accessdate=13 February 2015}}</ref> The table below lists some common standard attributes, and some tags they can function with.
 
{| class="wikitable sortable"
!Tag
!id
!class
!style
!title
!dir
!lang
!xml:lang
!accesskey
!tabindex
|-
!{{MDNHTMLRef|param}}
|id
|
|
|
|
|
|
|
|
|-
!{{MDNHTMLRef|head}}
|
|
|
|
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|html}}
|
|
|
|
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|meta}}
|
|
|
|
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|title}}
|
|
|
|
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|style}}
|
|
|
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|applet}}
|id
|class
|style
|title
|
|
|
|
|
|-
!{{MDNHTMLRef|br}}
|id
|class
|style
|title
|
|
|
|
|
|-
!{{MDNHTMLRef|frame}}
|id
|class
|style
|title
|
|
|
|
|
|-
!{{MDNHTMLRef|frameset}}
|id
|class
|style
|title
|
|
|
|
|
|-
!{{MDNHTMLRef|iframe}}
|id
|class
|style
|title
|
|
|
|
|
|-
!{{MDNHTMLRef|basefont}}
|id
|class
|style
|title
|dir
|lang
|
|
|
|-
!{{MDNHTMLRef|center}}
|id
|class
|style
|title
|dir
|lang
|
|
|
|-
!{{MDNHTMLRef|dir}}
|id
|class
|style
|title
|dir
|lang
|
|
|
|-
!{{MDNHTMLRef|font}}
|id
|class
|style
|title
|dir
|lang
|
|
|
|-
!{{MDNHTMLRef|menu}}
|id
|class
|style
|title
|dir
|lang
|
|
|
|-
!{{MDNHTMLRef|s}}
|id
|class
|style
|title
|dir
|lang
|
|
|
|-
!{{MDNHTMLRef|strike}}
|id
|class
|style
|title
|dir
|lang
|
|
|
|-
!{{MDNHTMLRef|u}}
|id
|class
|style
|title
|dir
|lang
|
|
|
|-
!{{MDNHTMLRef|abbr}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|acronym}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|address}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|b}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|big}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|blockquote}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|body}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|caption}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|cite}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|code}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|col}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|colgroup}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|dd}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|del}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|dfn}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|div}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|dl}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|dt}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|em}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|fieldset}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|form}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|hn}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|h1}}, {{MDNHTMLRef|h2}}, {{MDNHTMLRef|h3}}, {{MDNHTMLRef|h4}}, {{MDNHTMLRef|h5}}, {{MDNHTMLRef|h6}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|i}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|img}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|ins}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|kbd}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|li}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|link}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|map}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|noframes}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|noscript}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|ol}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|optgroup}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|option}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|p}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|pre}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|q}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|samp}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|small}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|span}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|strong}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|sub}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|sup}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|table}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|tbody}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|td}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|tfoot}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|th}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|thead}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|tr}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|tt}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|ul}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|var}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|
|-
!{{MDNHTMLRef|label}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|accesskey
|
|-
!{{MDNHTMLRef|legend}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|accesskey
|
|-
!{{MDNHTMLRef|object}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|tabindex
|-
!{{MDNHTMLRef|select}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|
|tabindex
|-
!{{MDNHTMLRef|a}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|accesskey
|tabindex
|-
!{{MDNHTMLRef|area}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|accesskey
|tabindex
|-
!{{MDNHTMLRef|button}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|accesskey
|tabindex
|-
!{{MDNHTMLRef|input}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|accesskey
|tabindex
|-
!{{MDNHTMLRef|textarea}}
|id
|class
|style
|title
|dir
|lang
|xml:lang
|accesskey
|tabindex
|}
 
===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%;"
|-
!Tag
!At
!At
!At
!At
!At
!At
!At
!At
!At
!At
!At
!At
!At
!At
!At
!At
!At
|-
!{{MDNHTMLRef|frameset}}
|onload
|onunload
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|-
!{{MDNHTMLRef|body}}
|onload
|onunload
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|abbr}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|acronym}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|address}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|b}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|big}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|blockquote}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|caption}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|center}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|cite}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|code}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|col}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|colgroup}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|dd}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|del}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|dfn}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|dir}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|div}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|dl}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|dt}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|em}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|fieldset}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|h1}}, {{MDNHTMLRef|h2}}, {{MDNHTMLRef|h3}}, {{MDNHTMLRef|h4}}, {{MDNHTMLRef|h5}}, {{MDNHTMLRef|h6}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|hr}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|i}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|ins}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|kbd}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|legend}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|li}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|link}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|map}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|menu}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|noframes}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|noscript}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|object}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|ol}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|optgroup}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|option}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|p}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|pre}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|q}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|s}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|samp}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|small}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|span}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|strike}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|strong}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|sub}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|sup}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|table}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|tbody}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|td}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|tfoot}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|th}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|thead}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|tr}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|tt}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|u}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|ul}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|var}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|img}}
|
|
|onabort
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|
|
|
|
|-
!{{MDNHTMLRef|a}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|onblur
|onfocus
|
|
|-
!{{MDNHTMLRef|area}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|onblur
|onfocus
|
|
|-
!{{MDNHTMLRef|button}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|onblur
|onfocus
|
|
|-
!{{MDNHTMLRef|form}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|onblur
|onfocus
|
|
|-
!{{MDNHTMLRef|label}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|onblur
|onfocus
|
|
|-
!{{MDNHTMLRef|select}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|onblur
|onfocus
|onchange
|
|-
!{{MDNHTMLRef|input}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|onblur
|onfocus
|onchange
|onselect
|-
!{{MDNHTMLRef|textarea}}
|
|
|
|onclick
|ondblclick
|onmousedown
|onmousemove
|onmouseout
|onmouseover
|onmouseup
|onkeydown
|onkeypress
|onkeyup
|onblur
|onfocus
|onchange
|onselect
|}
 
==References==
<references />
 
{{DEFAULTSORT:Html Attribute}}
[[Category:HTML]]