The HTML <bdo></bdo> element, or bidirectional override, is used to override the current directionality of text. It causes the directionality of the characters to be ignored in favor of the specified directionality.
Attributes
| Attribute | Value | Description |
|---|---|---|
dir |
ltr rtl |
Specifies the text direction using either ltr (left to right) or rtl (right to left) values. This attribute is required for functionality.
|
language |
RFC 1766 value | Specifies a string indicating the language/character set to be used. This attribute was replaced by the xml:lang attribute in XHTML 1.1.
|
HTML example:
Does this look <bdo dir="rtl">Backwards</bdo> to you?