Answers for "what is dir attribute in html"

1

what is dir attribute in html

<!--An attribute indicating the directionality of the text-->
<!--ltr: left to right, rtl: right to left, auto: algorithm decides-->
<p dir="rtl">This paragraph is in English but incorrectly goes right to left.</p>
<p dir="ltr">This paragraph is in English and correctly goes left to right.</p>

<hr>

<p>هذه الفقرة باللغة العربية ولكن بشكل خاطئ من اليسار إلى اليمين.</p>
<p dir="auto">هذه الفقرة باللغة العربية ، لذا يجب الانتقال من اليمين إلى اليسار.</p>
Posted by: Guest on January-30-2022

Code answers related to "what is dir attribute in html"

Browse Popular Code Answers by Language