input dirname Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:input

Description

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".

Attribute Values

ValueDescription
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:

Demo Code

ResultView the demo in separate window

<!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>

Related Tutorials