127 of 133 menu

The bdo tag

The bdo tag sets the text direction: left to right (like Russian, English and many other languages) or right to left (like Arabic or Hebrew).

By default, the text taken in this tag has the "normal" direction from left to right, but this behavior can be changed using the dir attribute.

The text direction can also be changed using the CSS properties unicode-bidi and direction or the dir attribute for any tag.

Attributes

Attribute Description
dir Specifies the direction of the text. The value ltr specifies left to right direction, and the value rtl specifies right to left direction.

Example

Let's change the direction of the Russian text:

<bdo dir="rtl"> This text has a right-to-left direction. </bdo>

:

See also

  • tag bdi, which creates an isolated 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