HTML and CSS Reference
In-Depth Information 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, ] [ The lang
attribute, ] 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, ]
Use the optional title attribute and quote-enclosed string value to
provide a descriptive phrase for the heading. [ The title attribute, ]
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 ] 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