HTML attribute: Difference between revisions

Content deleted Content added
m Reverted edits by 174.18.22.35 (talk) to last revision by Mako001: editing tests
m top: +link
 
(47 intermediate revisions by 34 users not shown)
Line 1:
{{short description|Special words used inside the opening tag to control the element's behaviour}}
{{Html series}}
'''HTML attributes''' are special words used inside the opening tag to control the element's behaviour. HTML attributes are 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'HTML attributes'',' needed byare aspecial particularwords elementused typeto foradjust thatthe elementbehavior typeor todisplay functionof correctly; (2)an ''optional[[HTML attributeselement]]'',. usedAn toattribute either modifymodifies the default functionality of an element type; (3)or ''standardprovides attributes'',functionality supportedto by manycertain element types; andunable (4)to ''eventfunction attributes'',correctly usedwithout tothem. causeIn element[[HTML]] typessyntax, toan attribute specifyis scriptsadded to bean run''[[HTML undertags|HTML specificstart circumstancestag]]''.
 
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 many element types; and (4) ''event attributes'' used to cause element types to specify scripts to be run under specific circumstances.
 
Doctype HTML is a declaration that tells the browser what version of HTML the document is written in.
 
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=W3C | access-date=13 February 2015}}</ref>
 
== Description ==
HTML attributes generally appear as [[name-valuename–value pair]]s, separated by <code>=</code>, and are written within the start tag of an element, after the element's name:
 
<syntaxhighlight lang="xml"><element attribute="value">element content</element></syntaxhighlight>
 
Where <code>element</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 |access-date=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&nbsp;4|publisher=World Wide Web Consortium|access-date=November 16, 2008}}</ref> Leaving attribute values unquoted is considered unsafe.<ref>{{cite web|first=Jukka|last=Korpela|url=https://jkorpela.fi/qattr.html|title=Why attribute values should always be quoted in HTML|publisher=Cs.tut.fi |date=July 6, 1998|access-date=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 |access-date=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|access-date=November 16, 2008}}</ref>).
Line 30 ⟶ 32:
Most elements also take the language-related attributes <code>lang</code> and <code>dir</code>.
 
=== Common attributes ===
 
Usually, [[HTML element]]s can take any of several most common standard attributes ([[#Standard_attributesStandard attributes|See the complete list]]):
 
* The '''<code>id</code>''' can take 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><ref>{{Cite web|url=https://www.w3schools.com/html/html_id.asp|title=HTML id|website=www.w3schools.comW3Schools|access-date=2020-04-27 |url-status=live |archive-url=https://web.archive.org/web/20200427024838/https://www.w3schools.com/html/html_id.asp |archive-date= Apr 27, 2020 }}</ref><ref>{{Cite web|url=https://www.w3schools.com/tags/att_global_id.asp|title=HTML Global id Attribute|website=www.w3schools.comW3Schools|access-date=2020-04-27}}</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> (to refer to the section "Attributes" in the "HTML" page).
* The '''<code>class</code>''' attribute provides a way of classifying similar elements. Multiple class names can be added by separating them with spaces.<ref>{{Cite web|url=https://www.w3schools.com/html/html_classes.asp|title=HTML Classes|website=www.w3schools.comW3Schools|access-date=2020-04-27}}</ref><ref>{{Cite web|url=https://www.w3schools.com/tags/att_global_class.asp|title=HTML Global class Attribute|website=www.w3schools.comW3Schools|access-date=2020-04-27}}</ref> This can be used for [[semantics|semantic]] purposes, or for presentation purposes. Semantically, for example, classes are used in [[microformat]]s. Presentationally, Additionally authors of style sheets can construct [[CSS selector|selectors]] that match elements by class for styling purposes. For example, ana 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 insteadpage—instead of appearing in the place wheresuggested theyby occurtheir inposition within the HTML source. Another presentationThe usestyle wouldsheet beauthor asmight aalso [[CSSdefine selector]].a Multiplerule classeswith [[Variable_(computer_science)#Naming_conventions|canthe be<code>.notation</code> addedselector byand havingdefine spacesthe betweenproperty each<code>font-size: Identifier]]small;</code>.
* The '''<code>style</code>''' attribute provides a way of applying element-specific style rules. Multiple [[CSS#Declaration block|style declarations]] can be added by separating them with semicolons and an optional space, where each declaration includes a CSS property name and a value separated by a colon and an optional space (Example: <code>style="color: red; text-align: center;"</code>).<ref>{{Cite web|url=https://www.w3schools.com/html/html_styles.asp|title=HTML Styles|website=W3Schools|access-date=2023-05-12}}</ref><ref>{{Cite web|url=https://www.w3schools.com/tags/att_global_style.asp|title=HTML Global style Attribute|website=W3Schools|access-date=2023-05-12}}</ref><ref>{{Cite web|url=https://www.w3schools.com/Css/css_syntax.asp
*|title=CSS An author may use the '''<code>styleSyntax|website=W3Schools|access-date=2023-05-12}}</coderef>''' non-attributal codes presentational properties to a particular element. The '''<code>style</code>''' attribute can be used on any HTML element (it will validate on any HTML element; however, it is not necessarily useful). It is considered better practice to useadd anthe element'sstyle <code>id</code> or <code>class</code> attributesinformation to select the element with a [[Style sheet (web development)|stylesheetstyle sheet]], thoughoften sometimesaccomplished thiswith canselectors bethat match the element class or ID. Sometimes, however, inline styles are favored where style sheets are considered too cumbersome for a simple and specific or ad hoc application of styledstyle propertiesspecification.
* 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]].
 
== Varieties ==
HTML attributes are generally classified 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=https://www.w3schools.com/tags/ref_standardattributes.asp|title=HTML /Global XHTMLAttributes Standard Attributes|publisher=w3schools.comW3Schools}}</ref>
*Event attributes, added in HTML version 4, allow an element to specify [[JavaScript|scripts]] to be run under specific circumstances.<ref>{{cite web|url=https://www.w3schools.com/tags/ref_eventattributes.asp|title=HTML / XHTML Standard Event Attributes |publisher=w3schools.comW3Schools}}</ref>
 
== Required and optional ==
 
=== Used by onetwo elements element===
* {{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 elements===
* {{MDNHTMLRef|a}} and {{MDNHTMLRef|area}}:
** coords — coordinates of an {{MDNHTMLRef|area|coords|v=1}} or a {{MDNHTMLRef|link|coords|v=1}} within it.
Line 113 ⟶ 94:
** 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 elements ===
* '''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 attribute|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}}
Line 139 ⟶ 120:
* '''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 |access-date=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''Standard attributes'' mustare bealso acceptedknown byas all''global elementsattributes'', thoughand theyfunction willwith nota functionlarge withnumber someof elements.<ref name="HTMLReferenceglobalattribute">{{cite web | url=https://developer.mozilla.org/en-US/docs/Web/HTML/ReferenceGlobal_attributes | title=HTMLGlobal referenceattributes - HTML (HyperText Markup Language) |website=MDN |Web Docs |access-date=13 February 2015-02-12}}</ref> TheThey tableinclude below lists somethe commonbasic standard attributes: these include ''accesskey, andclass, contenteditable, contextmenu, data, dir, hidden, id, lang, style, tabindex, title''. There are also some elementsexperimental theyones. canBoth function''xml:lang'' withand ''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) |website=MDN Web Docs | access-date=13 February 2015}}</ref> The table below lists some common standard attributes, and some elements they can function with.
{| class="wikitable sortable"
{{sticky header}}
{| class="wikitable sortable sticky-header"
!Element
!id
Line 158 ⟶ 139:
|-
!{{MDNHTMLRef|param}}
| {{ya|id}}
|
|
Line 173 ⟶ 154:
|
|
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
Line 184 ⟶ 165:
|
|
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
Line 195 ⟶ 176:
|
|
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
Line 206 ⟶ 187:
|
|
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
Line 216 ⟶ 197:
|
|
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|applet}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
|
|
Line 235 ⟶ 216:
|-
!{{MDNHTMLRef|br}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
|
|
Line 246 ⟶ 227:
|-
!{{MDNHTMLRef|frame}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
|
|
Line 257 ⟶ 238:
|-
!{{MDNHTMLRef|frameset}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
|
|
Line 268 ⟶ 249:
|-
!{{MDNHTMLRef|iframe}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
|
|
Line 279 ⟶ 260:
|-
!{{MDNHTMLRef|basefont}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
|
|
Line 290 ⟶ 271:
|-
!{{MDNHTMLRef|center}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
|
|
Line 301 ⟶ 282:
|-
!{{MDNHTMLRef|dir}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
|
|
Line 312 ⟶ 293:
|-
!{{MDNHTMLRef|font}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
|
|
Line 323 ⟶ 304:
|-
!{{MDNHTMLRef|menu}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
|
|
Line 334 ⟶ 315:
|-
!{{MDNHTMLRef|s}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
|
|
Line 345 ⟶ 326:
|-
!{{MDNHTMLRef|strike}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
|
|
Line 356 ⟶ 337:
|-
!{{MDNHTMLRef|u}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
|
|
Line 367 ⟶ 348:
|-
!{{MDNHTMLRef|abbr}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|acronym}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|address}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|b}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|big}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|blockquote}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|body}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|caption}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|cite}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|code}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|col}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|colgroup}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|dd}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|del}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|dfn}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|div}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|dl}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|dt}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|em}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|fieldset}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|form}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|hr}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|h1}}, {{MDNHTMLRef|h2}}, {{MDNHTMLRef|h3}}, {{MDNHTMLRef|h4}}, {{MDNHTMLRef|h5}}, {{MDNHTMLRef|h6}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|i}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|img}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|ins}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|kbd}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|li}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|link}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|map}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|noframes}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|noscript}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|ol}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|optgroup}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|option}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|p}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|pre}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|q}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|samp}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|small}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|span}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|strong}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|sub}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|sup}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|table}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|tbody}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|td}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|tfoot}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|th}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|thead}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|tr}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|tt}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|ul}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|var}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|label}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
| {{ya|accesskey}}
|
|-
!{{MDNHTMLRef|legend}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
| {{ya|accesskey}}
|
|-
!{{MDNHTMLRef|object}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
| {{ya|tabindex}}
|-
!{{MDNHTMLRef|select}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
| {{ya|tabindex}}
|-
!{{MDNHTMLRef|a}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
| {{ya|accesskey}}
| {{ya|tabindex}}
|-
!{{MDNHTMLRef|area}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
| {{ya|accesskey}}
| {{ya|tabindex}}
|-
!{{MDNHTMLRef|button}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
| {{ya|accesskey}}
| {{ya|tabindex}}
|-
!{{MDNHTMLRef|input}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
| {{ya|accesskey}}
| {{ya|tabindex}}
|-
!{{MDNHTMLRef|textarea}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
| {{ya|accesskey}}
| {{ya|tabindex}}
|}
 
== Event attributes ==
 
The standard attributes include the ''event handler attributes''. They are all prefixed on-:<ref name="globalattribute" />
{{columns-list|colwidth=12em|
* onabort
Line 1,095 ⟶ 1,076:
* onkeypress
* onkeyup
* onload
* onloadeddata
* onloadedmetadata
Line 1,130 ⟶ 1,111:
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 elements they can function with.
 
{{sticky header}}
{| class="wikitable sortable sticky-header"
|-
! Element
! {{verth|onload}}
!At
! {{verth|onunload}}
!At
! {{verth|onabort}}
!At
! {{verth|onclick}}
!At
! {{verth|ondblclick}}
!At
! {{verth|onmousedown}}
!At
! {{verth|onmousemove}}
!At
! {{verth|onmouseout}}
!At
! {{verth|onmouseover}}
!At
! {{verth|onmouseup}}
!At
! {{verth|onkeydown}}
!At
! {{verth|onkeypress}}
!At
! {{verth|onkeyup}}
!At
! {{verth|onblur}}
!At
! {{verth|onfocus}}
!At
! {{verth|onchange}}
!At
! {{verth|onselect}}
!At
|-
!{{MDNHTMLRef|frameset}}
| {{ya|onload}}
| {{ya|onunload}}
|
|
Line 1,171 ⟶ 1,153:
|-
!{{MDNHTMLRef|body}}
| {{ya|onload}}
| {{ya|onunload}}
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,193 ⟶ 1,175:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,212 ⟶ 1,194:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,231 ⟶ 1,213:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,250 ⟶ 1,232:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,269 ⟶ 1,251:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,288 ⟶ 1,270:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,307 ⟶ 1,289:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,326 ⟶ 1,308:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,345 ⟶ 1,327:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,364 ⟶ 1,346:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,383 ⟶ 1,365:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,402 ⟶ 1,384:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,421 ⟶ 1,403:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,440 ⟶ 1,422:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,459 ⟶ 1,441:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,478 ⟶ 1,460:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,497 ⟶ 1,479:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,516 ⟶ 1,498:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,535 ⟶ 1,517:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,554 ⟶ 1,536:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,573 ⟶ 1,555:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,592 ⟶ 1,574:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,611 ⟶ 1,593:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,630 ⟶ 1,612:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,649 ⟶ 1,631:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,668 ⟶ 1,650:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,687 ⟶ 1,669:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,706 ⟶ 1,688:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,725 ⟶ 1,707:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,744 ⟶ 1,726:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,763 ⟶ 1,745:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,782 ⟶ 1,764:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,801 ⟶ 1,783:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,820 ⟶ 1,802:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,839 ⟶ 1,821:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,858 ⟶ 1,840:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,877 ⟶ 1,859:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,896 ⟶ 1,878:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,915 ⟶ 1,897:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,934 ⟶ 1,916:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,953 ⟶ 1,935:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,972 ⟶ 1,954:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,991 ⟶ 1,973:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,010 ⟶ 1,992:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,029 ⟶ 2,011:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,048 ⟶ 2,030:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,067 ⟶ 2,049:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,086 ⟶ 2,068:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,105 ⟶ 2,087:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,124 ⟶ 2,106:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,143 ⟶ 2,125:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,162 ⟶ 2,144:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,181 ⟶ 2,163:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,200 ⟶ 2,182:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,219 ⟶ 2,201:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,238 ⟶ 2,220:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,257 ⟶ 2,239:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,276 ⟶ 2,258:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,295 ⟶ 2,277:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,313 ⟶ 2,295:
|
|
| {{ya|onabort}}
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,333 ⟶ 2,315:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
| {{ya|onblur}}
| {{ya|onfocus}}
|
|
Line 2,352 ⟶ 2,334:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
| {{ya|onblur}}
| {{ya|onfocus}}
|
|
Line 2,371 ⟶ 2,353:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
| {{ya|onblur}}
| {{ya|onfocus}}
|
|
Line 2,390 ⟶ 2,372:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
| {{ya|onblur}}
| {{ya|onfocus}}
|
|
Line 2,409 ⟶ 2,391:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
| {{ya|onblur}}
| {{ya|onfocus}}
|
|
Line 2,428 ⟶ 2,410:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
| {{ya|onblur}}
| {{ya|onfocus}}
| {{ya|onchange}}
|
|-
Line 2,447 ⟶ 2,429:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
| {{ya|onblur}}
| {{ya|onfocus}}
| {{ya|onchange}}
| {{ya|onselect}}
|-
!{{MDNHTMLRef|textarea}}
Line 2,466 ⟶ 2,448:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
| {{ya|onblur}}
| {{ya|onfocus}}
| {{ya|onchange}}
| {{ya|onselect}}
|}
 
== See also ==
* [[HTML element]]
 
== References ==
 
<references />
 
[[Category:HTML|attribute]]
{{DEFAULTSORT:Html Attribute}}
[[Category:HTML]]