HTML & CSS · Senior · Question 72 of 75
Why use dir="auto" on user-generated content such as comments?
- ✓Correct answer: The browser detects the text direction from the content, so Arabic or Hebrew comments render RTL on an LTR page
- 2It auto-translates the content
- 3It reverses the order of all elements
Explanation
Mixed-direction text without it shows punctuation and numbers in the wrong places. <bdi> isolates short inline snippets like usernames.