Language and Text Direction
Set lang on html so screen readers pronounce text correctly and browsers translate properly. dir="rtl" switches text direction for languages such as Arabic.
Example
<p lang="en">Hello</p>
<p lang="fr">Bonjour</p>
<p lang="ar" dir="rtl">مرحبا بالعالم</p>Exercise
Right to left.
<p dir="">text</p>
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.