HTML bdo tag

bdo stands for 'bi directional override'. <bdo> tag specifies the directional-formatting of text.

<p>This is one of the <bdo dir="rtl">most</bdo> amazing tool</p>
<p>That text was <bdo dir="rtl">reversed</bdo> </p>
</>

This is one of the most amazing tool

That text was reversed

The dir attribute decides the direction of text for the bdo tag. The text direction may be right to left or left to right. This tag overrides the direction of text from the normal directionality.

Tag omission

Both starting and ending tags are necessary for the bdo element.

Global Attributes

All the global attributes are applicable on the bdo element.

Tag Attributes

Attributes that are applicable to <bdo> tag

dir='auto':

It is a default for the bdo element. In the presence of this attribute, an element never inherits the direction of text from the parent element. See the example above

dir='rtl':

rtl value represents the direction of text is from right to left for bdo element.

<p>You should concentrate on the examples to understand thoroughly.</p>
<p><bdo dir="rtl">You should concentrate on the examples to understand thoroughly.</bdo></p>
Try </>

dir='ltr':

ltr value represents the direction of text is from left to right for the bdo element.

<p>يجب عليك التركيز على الأمثلة لفهم شامل</p>
<p><bdo dir="ltr">يجب عليك التركيز على الأمثلة لفهم شامل</bdo></p>
Try </>


Was this article helpful?