HTML <bdo> Tag

If this site has been useful, we’d love your support! Running this site takes time and resources, and every small contribution helps us keep creating valuable content. Consider buying us a coffee to keep things going strong!

Description

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.

Properties

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

Example

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

Attributes

Attribute Definition
dir

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.

Desktop
Edge Chrome Firefox Opera Safari
121510154
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview
1810143.214.4

Last updated by CSSPortal on: 30th March 2024