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.

ltr: Left-to-right
rtl: Right-to-left

TRY IT NOW