128 of 133 menu

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
English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline