An HTML form where the field's text direction will be submitted:
The dirname
attribute enables the submission of the text direction of the input field
The dirname
attribute's value is always the name of the input field, followed by ".dir".
The numbers in the table specify the first browser version that fully supports the attribute.
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h1>The dirname attribute</h1>
<form action="/action_page.php">
<label for="fname">First name:</label>
<input type="text" id="fname" name="fname" dirname="fname.dir">
<input type="submit" value="Submit">
</form>
<p>When the form is being submitted, the text direction of the input field will also be submitted.</p>
</body>
</html>
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |