HTML <bdo> Tag


The <bdo> HTML tag, which stands for "Bi-Directional Override," is used to control the direction of text within an HTML document, particularly in situations where text needs to be displayed in a direction that is different from the surrounding text. It is commonly employed when dealing with languages that are written from right to left, such as Arabic or Hebrew, within predominantly left-to-right text, like English. By using the <bdo> tag, web developers can explicitly specify the text direction, ensuring proper rendering and readability for multi-directional content.


Permitted Parents
Any element that accepts phrasing content
Inline and text
Start/End Tags
Start tag: required, End tag: required


<bdo dir="rtl">This text is going to be a bit difficult to read!</bdo>


Attribute Definition

Specifies the text direction for the content in an element.
Possible Values:

  • rtl  (Right to Left)
  • ltr  (Left to Right)

Global Attributes

The <a> tag also supports the Global Attributes in HTML5

Event Attributes

The <a> tag also supports the Event Attributes in HTML5

Browser Support

The following table will show you the current browser support for the HTML <bdo> tag.

Edge Chrome Firefox Opera Safari
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview

Last updated by CSSPortal on: 30th March 2024