/

HTML / CSS / JavaScript Tutorial

HTML Standard attribute: dirname

[this page | pdf | back links]

The HTML dirname attribute indicates that the text direction for the content of an element will be submitted. It applies to <input> and <textarea> elements. Currently, not all major browsers support this attribute.

 

The value of the dirname attribute is always the name of the input field, followed by .dir, i.e. valid attribute values (when used with <input> and <textarea> elements) are:

 

Value

Description

inputfieldname.dir

Indicates that the text direction of the input field with name inputfieldname will be specified

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile