Advertisement
Home Open Editor ❯

HTML <textarea> dirname Attribute

Example

<form action="action.php">
  <textarea dirname="textareaText.dir" name="textareaText">Hello world!</textarea>

  <input type="submit" value="Submit">
</form>

Try this code ❯

Meaning

The dirname attribute specifies the submission of the text direction of the text area and the value is always the name of the text area (suffix ".dir").


Standard Syntax

<textarea name="uniqueName" dirname="uniqueName.dir">...</textarea>


Advertisement

Attribute Values

Value Description
uniqueName.dir Specifies the text direction of the an text of <textarea> element will be submitted.
Home Open Editor ❯
Advertisement