एचटीएमएल डीआईआर विशेषता
उदाहरण
दाएँ-से-बाएँ दिशा वाला एक अनुच्छेद:
<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 विशेषताएँ
सीएसएस संदर्भ: दिशा संपत्ति
एचटीएमएल डोम संदर्भ: एचटीएमएल डोम डीआईआर संपत्ति
HTML DOM संदर्भ: शैली दिशा गुण