Common Attributes and Events


The HTML 4.01 specification includes several attributes that apply to a significant number of elements. These are referred to as %coreattrs, %i18n, and %events tHRoughout this appendix and are explained in the following section.

%coreattrs

Four attributes are abbreviated as %coreattrs:

  • 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 titles the entire web page

%i18n

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

  • lang="..." The language identifier

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

%events

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="..." A 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 Web Publishing with HTML and CSS in One Hour a Day
Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day (5th Edition)
ISBN: 0672328860
EAN: 2147483647
Year: 2007
Pages: 305

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