This attributes holds the direction value. It holds two types of direction values ltr for left to right and rtl for right to left. This attribute is accepted by <math>, <mi>, <mo>, <mrow>, <ms>, and <mtext>.
- ltr: This value holds the direction from left to right.
- rtl: This value holds the direction from right to left.
Below example illustrate the dir attribute in HTML5 MathML:
Supported Browsers: The browsers supported by HTML5 MathML dir attribute are listed below: