Horje

How to add HTML <textarea> dirname Attribute with label Tag

An HTML form where the field's text direction will be submitted.

Definition and Usage

The dirname attribute enables the submission of the text direction of the text area.

The dirname attribute's value is always the name of the text area, followed by ".dir".


Browser Support

The numbers in the table specify the first browser version that fully supports the attribute.

Syntax

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

Attribute Values

Value Description
name.dir Specifies that the text direction of the textarea will be submitted.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The textarea dirname attribute</h1>
<form action="/action_page.php">
<label for="css">Type Text:</label><br>
<textarea name="explanation"dirname="explanation.dir"></textarea></br>
<input type="submit" value="Submit">
</form>

<p>When the form is being submitted, the text direction of the textarea will also be submitted.</p>

</body>
</html>

How to add HTML <textarea> dirname Attribute with label Tag




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin