HTML and CSS Reference
In-Depth Information
B.1. Core Attributes
Prior to HTML 4.0, few attributes could be used consistently for all the
HTML tags. HTML 4.0 changed this, defining a set of 16 core attributes
that you can apply to almost all the elements in both HTML 4.01 and
XHTML 1.0. For brevity, we list these core attributes in this section and
spare you the redundancies in the table that follows:
Specify a style class controlling the appearance of
the tag's contents.
class= name
Specify the rendering direction for texteither left to
right ( ltr ) or right to left ( rtl ).
dir= dir
Define a reference name for the tag that is unique in
the document.
id= name
Specify the human language for the tag's contents
with an International Organization for Standardiza-
tion (ISO) 639 standard two-character name and op-
tional dialect subcode.
lang= language
Specify an applet to be executed when the user
clicks the mouse on the tag's content display area.
onclick= applet
Specify an applet to be executed when the user
double-clicks the mouse button on the tag's content
display area.
ondblclick= applet
Search WWH ::




Custom Search