HTML4 HTML5
Isolates a span of text (Bi-Directional Isolation) that might be formatted in a different direction from other text outside it. Particularly useful for dynamic content (such as usernames or comments) where text direction (LTR or RTL) is unknown ahead of time.
Both opening and closing tags are required.
Attributes: Mostly global attributes are used (including dir with values ltr, rtl, or default auto).
Code:
The browser will interpret this code as follows: