To Overview

Common Attributes

These attributes are found in many HTML tags, so I have decided to abbreviate and link to this document. They are not very good descriptions, so I have also provided a link to the HTML4.0 DTD. The abbreviations are not mine--they are used by the W3 HTML specification. Since I cannot link to every instance of the abbreviation, I have provided links back to the Overview, and if you wish, you may choose "Back" on your browser.

HTML4.0 DTD for the attributes listed here.


Attributes for Internationalization-%il8n

LANG=
  • "__" (A language code) - Gives the language.

This attribute defines the language of the element. It defines the language of the document when used in some tags.

DIR=
  • LTR - Defines the direction as left to right (such as in English).
  • RTL - Defines the direction as right to left (such as in Arabic).

This attribute tells the browser the direction of characters with weak (punctuation) and neutral (spacing) directionality. When used in the TABLE tag, it tells the browser which side of the table to place the first column.

Back to Top
Back to Overview


Attributes for Identification and Style Sheets-%coreattrs

ID=

This attribute gives the element its own ID (and so must be unique to the particular element) for identification purposes. Style sheets may refer to an element by ID. Links may use the ID as a target within the document. The ID can also be used by scripts.

CLASS=

This attribute classifies the element by defining a list of classes to which it belongs. Class names can be used by style sheets to format elements belonging to that class.

STYLE=

This attribute defines a style sheet for the element.

TITLE=

This attribute gives a title to its element, just as the <TITLE> tag gives a title for the document.

Back to top
Back to Overview


Attributes for Use with Scripts-%events

ONCLICK=

This attribute tells the browser to execute the specified script when a mouse clicks on the element.

ONDBLCLICK=

This attribute tells the browser to execute the specified script when a mouse double-clicks on the element.

ONMOUSEDOWN=
This attribute tells the browser to execute the specified script when a mouse button is pressed when the cursor is over the element.

ONMOUSEUP=

This attribute tells the browser to execute the specified script when a mouse button that was pressed over the element was released.

ONMOUSEOVER=

This attribute tells the browser to execute the specified script when a cursor is over the element.

ONMOUSEMOVE=

This attribute tells the browser to execute the specified script when a cursor passes over the element.

ONMOUSEOUT=

This attribute tells the browser to execute the specified script when a cursor that was over the element moves off the element.

ONKEYPRESS=

This attribute tells the browser to execute the specified script if a key was pressed and released while the element was selected.

ONKEYDOWN=

This attribute tells the browser to execute the specified script if a key was pressed while the element was selected.

ONKEYUP=

This attribute tells the browser to execute the specified script if a key that was pressed is released while the element is selected.

Back to Top
Back to Overview


Fantasia
Fantasia___@yahoo.com (That's Fantasia___@yahoo.com with three _'s. "_~)