XHTML Common Attributes and Events


The following six attributes are abbreviated as core in the preceding sections:

  • docEmphasis">id" A global identifier.

  • docEmphasis">styleclasses" A list of classes separated by spaces.

  • style="styles" Style information.

  • title="title" Provides more information for a specific element, as opposed to the <title> element, which titles the entire Web page.

  • accesskey="shortcut" Sets the keyboard shortcut used to access an element.

  • tabindex="taborder" Sets the tab order of an element.

The following two attributes for internationalization are abbreviated as i18n in the preceding sections:

  • lang="lang" The language identifier.

  • dir="texTDir" The text direction (ltr, rtl).

The following intrinsic events are abbreviated events:

  • onclick="eventcode" A pointing device (such as a mouse) was single-clicked.

  • ondblclick="eventcode" A pointing device (such as a mouse) was double-clicked.

  • onmousedown="eventcode" A mouse button was clicked and held down.

  • onmouseup="eventcode" A mouse button that was clicked and held down was released.

  • onmouseover="eventcode" A mouse moved the cursor over an object.

  • onmousemove="eventcode" The mouse was moved.

  • onmouseout="eventcode" A mouse moved the cursor off an object.

  • onkeypress="eventcode" A key was pressed and released.

  • onkeydown="eventcode" A key was pressed and held down.

  • onkeyup="eventcode" A key that was pressed has been released.




SAMS Teach Yourself HTML and CSS in 24 Hours
Sams Teach Yourself HTML and CSS in 24 Hours (7th Edition)
ISBN: 0672328410
EAN: 2147483647
Year: 2005
Pages: 345

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net