Copyright © tutorialspoint.com
The direction indicates the writing direction to be used in the rendering of an element.
All the HTML elements.
object.style.direction="ltr"; |
Here is the example:
<p style="direction:rtl;"> Right-to-left rendering direction - Example </p> <p style="direction:ltr;"> Left-to-right rendering direction - Example </p> |
This will produce following result:
Right-to-left rendering direction - Example Left-to-right rendering direction - Example |
To Become more comfortable - Do Online Practice
Copyright © tutorialspoint.com