The <bdo> tag is used to make your text go the opposite or reverse way to the default.
Where/how To Use The <bdo> Tag
| Use in head or body section? | body |
| Inline or Block level tag? | Inline |
| HTML Tag Syntax? | <start tag>CONTENT</end tag> |
| XHTML Tag Syntax? | <start tag>CONTENT</end tag> |
Example
| Code | Output |
|---|---|
| <bdo dir="rtl">The bdo tag is used for backwards text - Like in the Hebrew language</bdo> | The bdo tag is used for backwards text - Like in the Hebrew language |
| <bdo dir="ltr">The bdo tag is also used for generating the text left to right</bdo> | The bdo tag is also used for generating the text left to right |
Notes
In XHTML this tag must be closed
Attributes for the base tag
Attribute | Description | Value(s) | DOCTYPE |
|---|---|---|---|
Strict DOCTYPE Attributes |
|||
dir | Specifies the direction of the text. | rtl - Right to Left | Strict, Transitional and Frameset |
Common attributes for the bdo tag
class, style, id, title, dir, xml:lang, lang
Javascript Event attributes for the bdo tag
none

Comments