Name
DIR — NN n/a IE n/a HTML 4
Synopsis
DIR=”direction"
Optional
The direction
of character rendering for the element’s text when the
characters are not governed by inherent directionality according to
the Unicode standard. Character rendering is either left-to-right or
right-to-left. This attribute is usually set in concert with the
LANG
attribute; it must be used to specify a
character rendering direction that overrides the current direction.
Example
<A LANG="ar" DIR="rtl">Some Unicode Arabic text characters here
</A>
Value
ltr
|
rtl
(case insensitive)
Default
ltr
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.