bdo

FilterElements

<bdo> ... </bdo>

Stands for “bidirectional override” and is used to indicate a selection of text that reads in the opposite direction than the surrounding text. For instance, in a left-to-right reading document, the bdo element may be used to indicate a selection of Hebrew text that reads right to left (rtl).

Start/End Tags

Required/Required

Specifications

  • HTML 4.01
  • HTML5

dir=

Values: ltr | rtl
Required. Indicates whether the selection should read left to right (ltr) or right to left (rtl).

lang=

Values: 2-letter language code
Specifies the language of the element using a language code abbreviation.

xml:lang=

Values: text
XHTML only. Specifies languages in XML documents using a language code abbreviation.
This is how you write Shalom:
<bdo dir="rtl">&#x05E9;&#x05DC;&#x05D5;&#x05DD;
</bdo>

Rendered Example

This is how you write Shalom: שלום