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>
: