Attributes in HTML
Attributes in HTML
DTD: indicates in which HTML 4.01 / XHTML 1.0 DTD the tag is allowed. S=Strict,
T=Transitional, and F=Frameset
Core Attributes
Not valid in base, head, html, meta, param, script, style, and title elements.
Language Attributes
Not valid in base, br, frame, frameset, hr, iframe, param, and script elements.
Keyboard Attributes
Attribute Value Description
accesskey character Specifies a keyboard shortcut to access an element
tabindex number Specifies the tab order of an element
To learn more about programming events, please visit our JavaScript tutorial and our DHTML tutorial.
Below is the standard event attributes that can be inserted into HTML / XHTML elements to define
event actions.
<body> and <frameset> Events
The two attributes below can only be used in <body> or <frameset>:
Form Events
The attributes below can be used in form elements:
Image Events
The attribute below can be used with the img element:
Keyboard Events
Valid in all elements except base, bdo, br, frame, frameset, head, html, iframe, meta, param, script,
style, and title.