- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to set that the text direction will be submitted in HTML?
Use the dirname attribute allows you to submit the the text direction. The value will be the name of the input followed by “.dir”.
Example
<!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>
- Related Articles
- How to set text direction in HTML?
- How do we set the text direction for the content in an element in HTML?
- Set where to send the form-data when a form is submitted in HTML?
- How to set Text alignment in HTML?
- How do we include the direction of text display in HTML?
- How to set text font family in HTML?
- Set the direction of a text with CSS
- How to represent text that must be isolated from its surrounding for bidirectional text formatting in HTML?
- How to set the range that is considered to be of high value in HTML?
- How to set that the specified element/group of elements should be disabled in HTML?
- How do we set text font in HTML?
- How do we set the range that is considered to be of low value in HTML?
- How to specify where to send the form-data when a form is submitted in HTML?
- How to set the script to be executed asynchronously in HTML?
- How to specify that the target will be downloaded when a user clicks on the hyperlink in HTML?

Advertisements