Skip to content
BENIBIX Learn

Right-to-Left Text (RTL)

Design🔤 TypographyWriting Systems

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

Right-to-left text is writing that starts on the right side of the line and moves left. Arabic, Hebrew, Persian and Urdu are written this way. A page in one of these languages also flips: it starts on the right, and lists and menus line up on the right. Numbers inside the text still read from left to right. On a web page, the dir attribute tells the browser which way the text runs.

Example code

html
<html lang="fa" dir="rtl">
This tells the browser the page is Persian and runs right to left, so lines start on the right.
Right-to-left text starts at the right edge and moves left.

Common mistake

Only aligning the text to the right. The direction must be set too, or commas and brackets land in the wrong place.

Key takeaways

  1. 1
    Starts on the right. Lines run leftward.
  2. 2
    The layout flips. Menus and lists too.
  3. 3
    Numbers stay. They still read left to right.

Learn it properly