Skip to content
Related Articles

Related Articles

Improve Article

HTML | <textarea> dirname Attribute

  • Last Updated : 30 Jul, 2019
Geek Week

The HTML <textarea> dirname Attribute is used to enable the text direction of the Textarea Field after submitting the form. The value of the dirname attribute must be the name of the input field and textarea, followed by “.dir”.


<textarea name="myname" dirname="myname.dir"></textarea>

Attribute Values:

  • dir.nameIt specify that the text direction of the Textarea will be submitted.

Below Example illustrates the use of dirname attribute in Textarea Element.

<!DOCTYPE html>
        HTML <textarea> dirname Attribute
        h1 {
            color: green;
        HTML | Textarea dirname attribute 
        <Textarea name="fname"
            After the Submission of the form,
          the text direction of the textarea field
          will also be submitted.


Supported Browsers: The browsers supported by HTML <textarea> dirname Attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Apple Safari
  • Opera

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :