Tutorials References Exercises Videos Menu
Create Website Get Certified Upgrade

HTML <bdo> dir Attribute

❮ HTML <bdo> tag

Example

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

Attribute
dir Yes Yes Yes Yes Yes

Syntax

<bdo dir="ltr|rtl">

Attribute Values

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

❮ HTML <bdo> tag