HTML <bdo> Tag

BDO stands for Bi-Directional Override.

This is used to override the current text direction to display.

Use dir attribute in <bdo> tag.

The dir attribute is used to indicate the position(right-to-left, left-to-right) of the text.

Default dir attribute value is ltr.

Types :

  • rtl - Right to Left
  • ltr - Left to Right

Example :

<!DOCTYPE html>
    <h1>This is bdo Tag Example</h1>
    <bdo dir="rtl">This text is written right to left</bdo><br>
    <bdo dir="ltr">This text is written left to right</bdo>

Output :