HTML <bdo> tag

Updated: 10/11/2017 by Computer Hope

HTML bdo tagWhen 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, as well as 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>

Example result

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, as well as a description of each.

Attribute Description
dir This required attribute designates the direction of the text.


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

<bdi>, Browser, Compatibility, Web design terms