Common Attributes and Events


Four attributes are abbreviated as core. They are

  • A global identifier.

  • A list of classes separated by spaces.

  • style="..." Style information.

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

Two attributes for internationalization (i18n) are abbreviated as i18n:

  • lang="..." The language identifier.

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

The following intrinsic events are abbreviated events:

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

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

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

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

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

  • OnMouseMove="..." The mouse was moved.

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

  • OnKeyPress="..." A key was pressed and released.

  • OnKeyDown="..." A key was pressed and held down.

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



Sams Teach Yourself HTML in 10 Minutes
Sams Teach Yourself HTML in 10 Minutes (4th Edition)
ISBN: 067232878X
EAN: 2147483647
Year: 2004
Pages: 151
Authors: Deidre Hayes

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