align text rtl code example Example 1: code to start text from right in html in arabic <html dir="rtl" lang="ar"> Example 2: style direction direction: rtl; //ltr