Bi-Directional Override. Bi-directional text - defines an element that has different directional content. This is usually used with languages that are read in a different direction to the default language. For example, if Hebrew were used in an English document, it would need to be defined as being read from right-to-left. The <bdo> tag is used to override the current text direction.

Required Attributes

  • dir is used to specify the direction and can be set to ltr (left-to-right) or rtl (right-to-left).

Optional Attributes

  • xml:lang can be used to specify the language of the element.
  • Core Attributes

Example

<p>The output of this <bdo dir="rtl">word</bdo> will actually be "drow".</p>

Changes in HTML5

  • None.

Related Tags