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, as well as related attributes and browser compatibility.
<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, as well as a description of each.
|dir||Designates the direction of the text. This attribute is required.|
|All versions||All versions||All versions||All version||All versions||All versions|