Следите за новинками
в нашем Telegram канале. Жми, чтобы подписаться:)
130 of 133 menu
◀ ▶

The dir attribute

The dir attribute specifies the text direction: left to right (default) or right to left.

The value ltr specifies the direction from left to right, and the value rtl specifies the direction from right to left.

The text direction can also be changed using the CSS properties unicode-bidi and direction or the tags bdo and bdi.

Example

Let's change the direction of the Russian text:

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

:

← →
↑
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