HTML Bdo Tag

Bidirectional Text HTMLHTML Bdo Tag (<bdo>) stands for bidirectional override.

The HTML Bdo Tag is used to overrule the existing direction of text in any HTML resource or webpage.

HTML Bdo Tag Syntax

<bdo dir=”rtl|ltr”>
Some text here

HTML Bdo Tag Example

HTML Bdo Tag Code Output
<p> This text is left to right </p>
<p><bdo dir=”rtl”>
This text is right to left
This text is left to rightThis text is right to left

In the Bdo Tag example output, we can see that the text “This text is right to left” is actually rendered from right to left because we have wrapped the text in Bdo Tag and have used the value of “dir” attribute as “rtl”.

HTML Bdo Tag Attributes

HTML Bdo Tag Attribute Name Value Meaning
Dir rtl | ltr Rtl stands for right to left orientationLtr stands for left to right orientation

Bdo Tag supports all HTML Global Attributes and HTML Event Attributes.

HTML Bdo Tag Supporting Browsers

S. No. Browser Supported(Yes/No)
1 Internet Explorer Yes
2 Firefox Yes
3 Google Chrome Yes
4 Opera Yes
5 Safari Yes

Tagged , , , , , , , , , , , , . Bookmark the permalink.