HTML dir Attribute
This HTML dir attribute is used to define the path of the text i.e. left to right ‘ltr’ or right to left ‘rtl’. These are used when necessary as some languages are written right to left in scripting.
Using HTML dir Attribute
here is an example for dir attribute
See the start and the end of this text paragraph
See the start and the end of this text paragraph
there are three values for which it is defined
- ltr : “DEFAULT”Left to right direction
- rtl : Right to left direction
- auto : Automatically define the text direction based on content given when the direction is already know