![]() |
||
"dir=" attribute![]() |
![]() |
|
Internationalization of the World Wide Web began with HTML 3.0 but was passed over in HTML 3.2. It is revived in HTML 4.0
"Human writing systems are grouped into scripts, which determine amongst other things, the direction the characters are written. Elements of the Latin script are nominally left to right, while those of the Arabic script are nominally right to left. These characters have what is called strong directionality. Other characters can be directionally neutral (spaces) or weak (punctuation).
The DIR attribute specifies an encapsulation boundary which governs the interpretation of neutral and weakly directional characters. It does not override the directionality of strongly directional characters.
The DIR attribute value is one of LTR for left to right, or RTL for right to left, e.g. DIR=RTL." (W3C)
Note: Directionality of text cannot be determined by the "lang=" attribute. It must be stipulated by "dir=".