HTML and CSS Reference
In-Depth Information
4.2.1.2. The dir and lang attributes
The dir attribute lets you advise the browser in which direction the text
within that paragraph should be displayed, and lang lets you specify the
language used within the heading. [ The dir attribute, 3.6.1.1 ] [ The lang
attribute, 3.6.1.2 ]
4.2.1.3. The class, id, style, and title attributes
Use the id attribute to create a label for the heading that can later be
used to unambiguously reference that heading in a hyperlink target, for
automated searches, as a stylesheet selector, and with a host of other
applications. [ The id attribute, 4.1.1.4 ]
Use the optional title attribute and quote-enclosed string value to
provide a descriptive phrase for the heading. [ The title attribute,
4.1.1.5 ]
Use the style attribute with the heading tags to create an inline style
for the headings' contents. The class attribute lets you label the heading
with a name that refers to a predefined class declared in some
document-level or externally defined stylesheet. [ Inline Styles: The
style Attribute, 8.1.1 ] [ Style Classes, 8.3 ]
4.2.1.4. Event attributes
Each user-initiated event that may happen in and around a heading is
recognized by the browser if it conforms to the HTML or XHTML stand-
ard. With the respective on attribute and value, you may react to that
event by displaying a user dialog box or activating some multimedia
event. [ JavaScript Event Handlers, 12.3.3 ]
 
Search WWH ::




Custom Search