HTML <bdo> tag

Updated: 11/13/2018 by Computer Hope
HTML bdo tag

When writing in HTML, the <bdo> tag (which stands for bidirectional override) is an inline element used to force text to go one way or another. It is useful when dealing with languages that are written from right to left, such as Hebrew and Arabic. The following sections contain information about this tag, including an example of it in use, and related attributes and browser compatibility.

Example code

<p>This text is written from left-to-right.</p>
<p><bdo dir="rtl">This text is written from right-to-left.</bdo></p>

The above code, rendered in a web browser:

This text is written from left-to-right.

This text is written from right-to-left.


Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The following table shows all of the current unique HTML attributes for the <bdo> tag, and a description of each.

Attribute Description
dir Designates the direction of the text. This attribute is required.


Edge Internet Explorer Firefox Safari Opera Chrome
All versions All versions All versions All version All versions All versions

<bdi>, Browser, Compatibility, Computer acronyms, Web design terms