contents introduction reference index previous next
COMMON ATTRIBUTES
These are the attributes that can be used in almost all elements
AttributeFormatComment
Core Attributes
idid="name"assigns a unique (in the HTML page) ID to the element
classclass="cdata-list"includes the element in the classes in the list
stylestyle="style"specifies the style properties of an element
titletitle="text"advisory title that can pop up when the mouse pointer hovers over the control
Language Attribute (i18n)
langlang="code"code of the language used in the element
dirdir="LTR|RTL"reading direction, Left to Right (LTR) or Right to Left (RTL)
Intrinsic event Handling Attributes
onclickonclick="script"script run when the element is clicked
ondblclickondblclick="script"script run when the element is double-clicked
onmouseoveronmouseover="script"script run when when the mouse pointer hovers over the element
onmouseoutonmouseout="script"script run when the mouse pointer leave the element
onmousedownonmousedown="script"script run when the mouse button is pressed down
onmouseuponmouseup="script"script run when the mouse button is released, after being pressed down
onmousemoveonmousemove="script"script run when the mouse pointer moves over the element.
onkeypressonkeypress="script"script run when a key is pressed while the element has focus.
onkeydownonkeydown="script"script run when a key is held down while the element has focus.
onkeyuponkeyup="script"script run when a key being held down is released while the element has focus.


contents introduction reference index previous next