An HTML form where the field's text direction will be submitted.
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".
The numbers in the table specify the first browser version that fully supports the attribute.
<textarea name="myname" dirname="myname.dir"></textarea>
Value | Description |
---|---|
name.dir | Specifies that the text direction of the textarea will be submitted. |
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>
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |