The bdo stands for Bi-Directional Override. HTML <bdo> tag overrides the current text direction. The bdo tag doesn’t alter the language or other scripts and it serves as a identifier.
Sample Code
<!–bdo right-to-left sample code–>
<bdo dir="rtl">
right-to-left example
</bdo>
<br />
<!–bdo left-to-right sample code–>
<bdo dir="ltr">
left-to-right example
</bdo>
<bdo dir="rtl">
right-to-left example
</bdo>
<br />
<!–bdo left-to-right sample code–>
<bdo dir="ltr">
left-to-right example
</bdo>
Sample Result
right-to-left example
left-to-right example
left-to-right example
Tip: You can see the complete List of HTML Elements here.
Tag Specific Attributes Support
Following are few bdo tag attributes that are supported by <bdo> tag.
Attribute | Value | Description |
---|---|---|
dir | ltr rtl |
Represents the text direction change text direction from left-to-right change text direction from right-to-left |
Standard Attributes Support
HTML <bdo> tag supports HTML Attributes. You can get more details about available HTML Attributes here.
Event Attributes Support
HTML <bdo> tag supports Event Attributes. You can get more details about available HTML Event Attributes here.