The dir property specifies the directionality of the text of the current element.
Syntaxdirectionality = element.dir element.dir = directionality
directionality is a string representing the direction of the current element text. See Notes below for a list of the valid directions.
The directionality of element text is which direction that text goes (for support of different language systems). Possible values for dir are ltr, for Left-to-right, and rtl, for Right-to-left.