سمة دليل HTML
مثال
فقرة ذات اتجاه من اليمين إلى اليسار:
<p dir="rtl">Write this text right-to-left!</p>
التعريف والاستخدام
تحدد السمة dir
اتجاه النص لمحتوى العنصر.
دعم المتصفح
Attribute | |||||
---|---|---|---|---|---|
dir | Yes | Yes | Yes | Yes | Yes |
بناء الجملة
<element dir="ltr|rtl|auto">
قيم السمات
Value | Description |
---|---|
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) |
الصفحات ذات الصلة
دروس HTML: سمات HTML
مرجع CSS: خاصية direction
مرجع HTML DOM: خاصية HTML DOM dir
مرجع DOM HTML: خاصية اتجاه النمط