dirname অ্যাট্রিবিউট দিয়ে ইনপুট ফিল্ডের টেক্সট ডিরেকশন (ltr/rtl) সার্ভারে সাবমিট করা যায়। এর মান হবে ইনপুটের নাম সাথে .dir।
উদাহরণ
<!DOCTYPE html> <html> <body> <h2>Student Contact Form</h2> <form action = "mailto:emailid@example.com" method = "post" enctype = "text/plain"> Student Name:<br><input type = "text" name = "sname" dirname = "sname.dir"> <br> Student Subject:<br><input type = "text" name = "ssubject"><br> <input type = "submit" value = "Send"> </form> </body> </html>