Hello — this paragraph starts with English, so it flows LTR.
مرحبًا — هذه الفقرة تبدأ بالعربية، فتتدفق RTL.
<html lang="ar" dir="rtl">…</html>
Set dir on <html> for the whole page, and pair it with lang for accessibility.
dir
<html>
lang
Lines: 0 | Characters: 0