HTML <input> dirname Attribute

Definition and Usage

dirname Attribute enables the submission of the text direction of the input field.

dirname The value of the attribute is always the name of the input field, followed by ".dir".

Example

Submit the text direction of the HTML form:

<form action="/action_page.php">
  <label for="fname">Name:</label>
  <input type="text" id="fname" name="fname" dirname="fname.dir">
  <input type="submit" value="Submit">
</form>

Try It Yourself

Syntax

<input name="myname" dirname="myname.dir">

Attribute Value

Value Description
name.dir ເພື່ອປະກອບຄຳຂໍ້ຂອງບາງບາງຟາມສົ່ງລົງ.

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support 79.0 Not Supported Support Support