How do you change the direction of html text? Technology Community › Category: HTML5 › How do you change the direction of html text? 0 Vote Up Vote Down VietMX Staff asked 4 years ago The dir attribute is used to set the base direction of text for display. It is essential for enabling HTML in right-to-left scripts such as Arabic, Hebrew, Syriac, and Thaana. <!DOCTYPE html> <html dir="rtl" lang="ar"> <head> <meta charset="utf-8"> ...