The bdi tag
The bdi tag specifies a text fragment that should be isolated from changes in text direction. This behavior is important for texts that simultaneously contain different languages, read from left to right and from right to left.
The text direction can be changed using the tag bdo, the attribute dir or the CSS properties unicode-bidi and direction.
Example
Let's change the direction of the Russian text:
<bdo dir="rtl">This text <bdi dir="ltl">except for this piece</bdi> has a direction from right to left.</bdo>
:
See also
-
tag
bdo,
which sets the text direction