HTML bdo - how to use <bdo> tag

The <bdo> tag, Bi-Directional Override, is used to specify the direction of the text.

Attributes

The bdo tag supports the global and event attributes.

ltr
This indicates that text should be displayed from left to right.
rtr
This indicates that text should be displayed from right to left.

Examples:

<div> <!-- Switch text direction --> <p>This text will go left to right.</p> <p><bdo dir="rtl">This text will go right to left.</bdo></p> </div>