<form name="myForm" action="https://www.PuStudy.Com/resources/html-forms-action.html"> <input name="text" dirname="text.dir"> <button>Submit</button> </form>
The above example demonstrates usage of the
<input> element with the
dirname attribute enables the submission of the directionality of the element, and gives the name of the field that contains this value during form submission.
If the user uses a left-to-right writing direction, the direction will be
ltr. If they use a right-to-left writing direction it will be