What is right way to use lang and dir attribute in td element ?

Kunal Tiwalkar 1 Reputation point
2022-02-25T04:53:52.813+00:00

Which method should I use?

  1. <td><span title="Arabic-language text"><span lang="ar" dir="rtl"></span></span></td>
  2. <td lang="ar" dir="rtl"></td>

Above second is my method. Wikipedia use first method. But when I use dir="rtl" in span element then dir="rt" is not working. Why? It's working when I use dir="rt" in td element.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,168 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.