Content deleted Content added
No edit summary |
m →top: +link |
||
(122 intermediate revisions by 79 users not shown) | |||
Line 1:
{{short description|Special words used inside the opening tag to control the element's behaviour}}
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–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 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>).
The abbreviation element, <code>abbr</code>, can be used to demonstrate these various attributes:
This example displays as <span id="anId" class="aClass" style="color:blue;" title="Hypertext Markup Language">HTML</span>
<syntaxhighlight lang="html"><div style="text-align: center;">Centered text</div></syntaxhighlight>
In this other example, your text will look like this:
<div style="text-align: center;">Centered text</div>
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 attributes|See the complete list]]):
* 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><ref>{{Cite web|url=https://www.w3schools.com/html/html_id.asp|title=HTML id|website=W3Schools|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=W3Schools|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=W3Schools|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=W3Schools|access-date=2020-04-27}}</ref> Semantically, for example, classes are used in [[microformat]]s. Additionally authors of style sheets can construct [[CSS selector|selectors]] that match elements by class for styling purposes. For example, a 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 as footnotes on a page—instead of appearing in the place suggested by their position within the HTML source. The style sheet author might also define a rule with the <code>.notation</code> selector and define the property <code>font-size: 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 Syntax|website=W3Schools|access-date=2023-05-12}}</ref> 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 add the style information to a [[Style sheet (web development)|style sheet]], often accomplished with selectors that 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 style specification.
* 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 Attributes |publisher=W3Schools}}</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 Event Attributes |publisher=W3Schools}}</ref>
== Required and optional ==
=== Used by two
* {{MDNHTMLRef|a}} and {{MDNHTMLRef|area}}:
** coords — coordinates of an {{MDNHTMLRef|area|coords|v=1}} or a {{MDNHTMLRef|link|coords|v=1}} within it.
Line 86 ⟶ 79:
** 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
* {{MDNHTMLRef|input}} and {{MDNHTMLRef|textarea}}:
** readonly — specifies read-only text for {{MDNHTMLRef|input|readonly|v=1}} and {{MDNHTMLRef|textarea|readonly|v=1}}.
Line 101 ⟶ 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
* '''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 113 ⟶ 106:
* '''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'''
* '''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}}
Line 127 ⟶ 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 ==
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.
{{sticky header}}
{| class="wikitable sortable sticky-header"
!Element
!id
!class
Line 146 ⟶ 139:
|-
!{{MDNHTMLRef|param}}
| {{ya|id}}
|
|
Line 161 ⟶ 154:
|
|
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
Line 172 ⟶ 165:
|
|
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
Line 183 ⟶ 176:
|
|
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
Line 194 ⟶ 187:
|
|
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
Line 204 ⟶ 197:
|
|
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
| {{ya|xml:lang}}
|
|
|-
!{{MDNHTMLRef|applet}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
|
|
Line 223 ⟶ 216:
|-
!{{MDNHTMLRef|br}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
|
|
Line 234 ⟶ 227:
|-
!{{MDNHTMLRef|frame}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
|
|
Line 245 ⟶ 238:
|-
!{{MDNHTMLRef|frameset}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
|
|
Line 256 ⟶ 249:
|-
!{{MDNHTMLRef|iframe}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
|
|
Line 267 ⟶ 260:
|-
!{{MDNHTMLRef|basefont}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
|
|
Line 278 ⟶ 271:
|-
!{{MDNHTMLRef|center}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
|
|
Line 289 ⟶ 282:
|-
!{{MDNHTMLRef|dir}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
|
|
Line 300 ⟶ 293:
|-
!{{MDNHTMLRef|font}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
|
|
Line 311 ⟶ 304:
|-
!{{MDNHTMLRef|menu}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
|
|
Line 322 ⟶ 315:
|-
!{{MDNHTMLRef|s}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
|
|
Line 333 ⟶ 326:
|-
!{{MDNHTMLRef|strike}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
|
|
Line 344 ⟶ 337:
|-
!{{MDNHTMLRef|u}}
| {{ya|id}}
| {{ya|class}}
| {{ya|style}}
| {{ya|title}}
| {{ya|dir}}
| {{ya|lang}}
|
|
Line 355 ⟶ 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|
| {{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}}
|}
==
The standard attributes include the ''event handler attributes''. They are all prefixed on-:<ref name="globalattribute" />
{{columns-list|colwidth=12em|
* 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}}
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
{{sticky header}}
{| class="wikitable sortable sticky-header"
|-
! Element
! {{verth|onload}}
! {{verth|onunload}}
! {{verth|onabort}}
! {{verth|onclick}}
! {{verth|ondblclick}}
! {{verth|onmousedown}}
! {{verth|onmousemove}}
! {{verth|onmouseout}}
! {{verth|onmouseover}}
! {{verth|onmouseup}}
! {{verth|onkeydown}}
! {{verth|onkeypress}}
! {{verth|onkeyup}}
! {{verth|onblur}}
! {{verth|onfocus}}
! {{verth|onchange}}
! {{verth|onselect}}
|-
!{{MDNHTMLRef|frameset}}
| {{ya|onload}}
| {{ya|onunload}}
|
|
Line 1,095 ⟶ 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,117 ⟶ 1,175:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,136 ⟶ 1,194:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,155 ⟶ 1,213:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,174 ⟶ 1,232:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,193 ⟶ 1,251:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,212 ⟶ 1,270:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,231 ⟶ 1,289:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,250 ⟶ 1,308:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,269 ⟶ 1,327:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,288 ⟶ 1,346:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,307 ⟶ 1,365:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,326 ⟶ 1,384:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,345 ⟶ 1,403:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,364 ⟶ 1,422:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,383 ⟶ 1,441:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,402 ⟶ 1,460:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,421 ⟶ 1,479:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,440 ⟶ 1,498:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,459 ⟶ 1,517:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,478 ⟶ 1,536:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,497 ⟶ 1,555:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,516 ⟶ 1,574:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,535 ⟶ 1,593:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,554 ⟶ 1,612:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,573 ⟶ 1,631:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,592 ⟶ 1,650:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,611 ⟶ 1,669:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,630 ⟶ 1,688:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,649 ⟶ 1,707:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,668 ⟶ 1,726:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,687 ⟶ 1,745:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,706 ⟶ 1,764:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,725 ⟶ 1,783:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,744 ⟶ 1,802:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,763 ⟶ 1,821:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,782 ⟶ 1,840:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,801 ⟶ 1,859:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,820 ⟶ 1,878:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,839 ⟶ 1,897:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,858 ⟶ 1,916:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,877 ⟶ 1,935:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,896 ⟶ 1,954:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,915 ⟶ 1,973:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,934 ⟶ 1,992:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,953 ⟶ 2,011:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,972 ⟶ 2,030:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 1,991 ⟶ 2,049:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,010 ⟶ 2,068:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,029 ⟶ 2,087:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,048 ⟶ 2,106:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,067 ⟶ 2,125:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,086 ⟶ 2,144:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,105 ⟶ 2,163:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,124 ⟶ 2,182:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,143 ⟶ 2,201:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,162 ⟶ 2,220:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,181 ⟶ 2,239:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,200 ⟶ 2,258:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,219 ⟶ 2,277:
|
|
| {{ya|onclick}}
| {{ya|ondblclick}}
| {{ya|onmousedown}}
| {{ya|onmousemove}}
| {{ya|onmouseout}}
| {{ya|onmouseover}}
| {{ya|onmouseup}}
| {{ya|onkeydown}}
| {{ya|onkeypress}}
| {{ya|onkeyup}}
|
|
Line 2,237 ⟶ 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,257 ⟶ 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,276 ⟶ 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,295 ⟶ 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,314 ⟶ 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,333 ⟶ 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,352 ⟶ 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,371 ⟶ 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,390 ⟶ 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}}
|}
==
* [[HTML element]]
== References ==
<references />
[[Category:HTML|attribute]]
|