HTML and CSS Reference
In-Depth Information
Figure 5-6. Combining rule attributes for special effects
<hr size=32 width="50%" align=center>
In fact, some combinations of rule attributes are necessary
align
and
width
, for example.
Align
alone appears to do nothing because the de-
fault rule width stretches all the way across the display window.
5.1.1.7. The class, dir, event, id, lang, style, and title attributes
There are several nearly universal attributes for the many content tags.
These attributes give you a common way to identify (
title
) and la-
bel (
id
) a tag's contents for later reference or automated treatment, to
change the contents' display characteristics (
class
,
style
), to reference
the language (
lang
) used, and to specify the direction in which the text
should flow (
dir
). Of course, how language and the direction of text af-
fect a horizontal rule is unclear. Nonetheless, they are standard attrib-
utes for the tag. [
The dir attribute, 3.6.1.1
] [
The lang attribute, 3.6.1.2
]
In addition, there are all the user events that may happen in and around
the horizontal rule that the browser senses and that you may react to