We usually write the English language and English language written left to right. But in the world some language is written from right to left example, Arabic, Hebrew, Syriac, Thaana, tifinar and Urdu. This type of language for we need to use dir attribute. Dir attribute used for defining text written mode, from left to right either right to left.
<p dir="rtl">שלום עולם</p>
This text meaning "hello world" in hebrew. This text written right to left.