W3.CSSLesson 26Free preview
W3.CSS RTL
This lesson is part of W3.CSS · All levels
Summary
RTL is an abbreviation of right-to-left, the reading direction used in Arabic, Hebrew, and Farsi. By changing the dir attribute to rtl, the direction-dependent elements such as the margin and the starting position will follow the reverse. Managing RTL from the start makes the interface ready for international readers.
Key points
- The dir='rtl' attribute on the html element activates the right-to-left direction
- Elements that use automatic direction change according to their attributes
- Logical properties such as margin-inline-start adjust the direction of the text
- Images and icons often need to be reflected backward
- The display test on the RTL language before it is considered complete
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.