HTML CSS examples for HTML Tag:input
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".
Value | Description |
---|---|
name.dir | Specifies that the text direction of the input field will be submitted. |
An HTML form where the field's text direction will be submitted:
<!DOCTYPE html> <html> <body> <form action="/action_page.php"> First name: <input type="text" name="fname" dirname="fname.dir"> <input type="submit" value="Submit"> </form><!--from w ww . j av a2 s . c o m--> <p>When the form is being submitted, the text direction of the input field will also be submitted.</p> </body> </html>