HTML <input> Tag with the 'dirname' Attribute

<form name="myForm" action="">
<input name="text" dirname="text.dir">



The above example demonstrates usage of the <input> element with the dirname attribute.

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 rtl.