TailwindCSS Docs - v3.1.0
LTR & RTL Modes

LTR (Left-to-Right) and RTL (Right-to-Left) are attributes used in HTML to specify the direction in which the text is displayed. These attributes are particularly important for languages that are read from right to left, such as Arabic and Hebrew.

1. Left-to-Right (LTR)

To display content in a left-to-right direction, you can use the dir="ltr" attribute. This is the default text direction for most languages, including English, Spanish, and Chinese.

dir="ltr"

2. Right-to-Left (RTL)

To display content in a right-to-left direction, you can use the dir="rtl" attribute. This is used for languages like Arabic, Hebrew, and Persian.

dir="rtl"