<bdo>...</bdo>

HTML4 HTML5

Overrides the current text direction (standard left-to-right or right-to-left as in Arabic).

Both opening and closing tags are required.

Attributes:

lang = "..." - Specifies the document language.

dir = "..." - Specifies text direction (ltr - left to right, or rtl - right to left). The dir attribute is required.

Example

Code:

<p>This paragraph is displayed left-to-right.</p>  
<p><bdo dir="rtl">And this paragraph is displayed in reverse direction compared to standard layout, right-to-left.</bdo></p>

The browser will interpret this code as follows:

This paragraph is displayed left-to-right.

And this paragraph is displayed in reverse direction compared to standard layout, right-to-left.