This example demonstrates:
How to change the text direction of an element.
Example analysis:
The direction attribute specifies the text direction or writing direction.
The following attribute values can be set:
●ltr: Default value, the text direction is from left to right.
● rtl: The text direction is from right to left.