“Dir in html” Code-Antworten

Was ist das Dir -Attribut 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>
Wissam

Dir in html

A paragraph with a right-to-left direction:

  <p dir="rtl">Write this text right-to-left!</p>

Value :
 ltr	Default. Left-to-right text direction
 rtl	Right-to-left text direction
 auto	Let the browser figure out the text direction, based on the content (only recommended if the text direction is unknown)
Shohanur Rahman

Ähnliche Antworten wie “Dir in html”

Fragen ähnlich wie “Dir in html”

Weitere verwandte Antworten zu “Dir in html” auf HTML

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen