नमस्कार दोस्तों ! इस लेख में हम How to change text direction in HTML? के बारे में बात करेंगे।
How to change text direction in HTML?
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Text Direction Example</title> </head> <body> <!-- Default text direction (left-to-right) --> <p>This text is displayed from left to right (default).</p> <!-- Change text direction to right-to-left --> <p dir="rtl">This text is displayed from right to left.</p> <!-- Left-to-right text inside a right-to-left context --> <div dir="rtl"> <p>This is a right-to-left section.</p> <p dir="ltr">But this paragraph is left-to-right inside the RTL section.</p> </div> </body> </html>
How to override the current text direction?
हम आशा करते है की आपको आपके सवाल How to change text direction in HTML? का जवाब मिल गया होगा।