HTML and CSS Reference
In-Depth Information
4.7.2.2. The dir and lang attributes
The
dir
attribute lets you advise the browser in which direction the text
within the
<q>
segment should be displayed, and
lang
lets you specify
the language used within that tag. [
The dir attribute, 3.6.1.1
] [
The lang
4.7.2.3. The class, id, style, and title attributes
Use the
style
attribute to specify an inline style for the
<q>
tag, or use
You may assign a unique ID to the
<q>
tag, as well as a title, using
the respective attribute and accompanying quote-enclosed string value.
4.7.2.4. Event attributes
As with most other tagged segments of content, user-related events can
happen in and around the
<q>
tag, such as when a user clicks or double-
clicks within its display space. The current browsers recognize many of
these events. With the respective
on
attribute and value, you may react
to those events by displaying a user dialog box or activating some mul-
timedia event. [
JavaScript Event Handlers, 12.3.3
]