CSS direction प्रॉपर्टी
टेक्स्ट दिशा सेट करने के लिए style एट्रिब्यूट के साथ CSS direction प्रॉपर्टी उपयोग करें।
मान:
| क्र.सं. | मान और विवरण |
|---|---|
| 1 | ltr - लेफ्ट टू राइट |
| 2 | rtl - राइट टू लेफ्ट |
| 3 | initial - डिफ़ॉल्ट मान |
उदाहरण
<!DOCTYPE html> <html>
<head> <title>HTML Text Direction</title> </head>
<body>
<p style="direction: rtl;"> This text will get displayed from right to left </p>
<p>This is normal text.</p>
</body>
</html>