HTML <bdo> Tag

Left to right text <bdo dir="rtl">Right to left text</bdo>

The <bdo> element allows you to override the text direction.

The <bdo> element is useful for displaying right-to-left text (such as Hebrew, Arabic, Persian, Thaana, Urdu, etc) inside left-to-right text (such as English).

How to Use the above Code

  1. Replace the value of the <bdo> element with the text that should have its direction overridden.
  2. Replace the the rest of the content with your own code.

You must use the dir global attribute when using the <bdo> element. The dir attribute specifies the direction of the text:

  • ltr: Left to right
  • rtl: Right to left