🔤Right-to-Left Text (RTL)
Also known as Right-to-Left Script, RTL Language, RTL Layout
Writing that starts on the right and moves left, like Persian.
Think of it like
It is like reading a comic that starts on the right page. Your eyes move the other way.
Example
A shop adds a Persian version of its site. With the direction set to right to left, the text, the menu and the back arrow all flip.
Why it matters
Whole languages are read right to left. A page that ignores it looks broken to their readers.
Definition
Example code
html
<html lang="fa" dir="rtl">Common mistake
Key takeaways
- 1Starts on the right. Lines run leftward.
- 2The layout flips. Menus and lists too.
- 3Numbers stay. They still read left to right.