Tutorials References Exercises Bootcamps Videos Menu
Sign Up Create Website Get Certified Upgrade

HTML <bdo> dir Attribute

❮ HTML <bdo> tag


Specify the text direction:

<p>Hello world. <bdo dir="rtl">Hello world</bdo></p>
Try it Yourself »

Definition and Usage

The required dir attribute specifies the text direction of the text inside a <bdo> element.

Browser Support

dir Yes Yes Yes Yes Yes


<bdo dir="ltr|rtl">

Attribute Values

Value Description
ltr Left-to-right text direction
rtl Right-to-left text direction

❮ HTML <bdo> tag