Definition and Usage The dir attribute specifies flow direction of the elements text (left-to-right or right-to-left). Syntax <bd...
Definition and Usage
The dir attribute specifies flow direction of the elements text (left-to-right or right-to-left).
Syntax
<bdo dir="text_direction"> |
Syntax Example
Attribute Values
Value | Description |
ltr | Text direction left-to-right |
rtl | Text direction right-to-left |
Browser Support
The attribute is supported in all major browsers.
Note: Not supported in Safari 2 or earlier versions.
Example
Source | Output |
<p>Hello world.
<bdo dir="rtl">Hello world</bdo></p> | Hello world. Hello world |