The <bdo> tag is used to specify the direction that the text is displayed. This tag overrides the current directionality of text. Mostly this tag is used in Hebrew, Arabic and other languages that use the right to left pattern. You can write text whether from right to left or left to right using dir attribute of <bdo> tag. The full name of BDO is Bidirectional Override.
Syntax
<bdo
class="class name(s)"dir="ltr | rtl"
id="unique alphanumeric identifier"
lang="language code"
style="style information"
title="advisory text">
</bdo>
Example
- <p>Welcome to CsharpCorner.
- <bdo dir="ltr">Thank you for visiting site.</bdo>
- </p>
- <p>Welcome to CsharpCorner.
- <bdo dir="rtl">Thank you for visiting site.</bdo>
- </p>