DIR attribute (cont.)

On in-line elements (<span>, <em>,<strong>, etc.), the dir attribute creates a new embedding level

Example data (UPPERCASE IS RTL, lowercase is ltr):
he said: <span dir=rtl>«HE SAID: «hello» AND SHUT UP»</span> and shut up.
Correct rendering:
he said: «PU TUHS DNA «hello» DIAS EH» and shut up.
Wrong rendering:
he said: «DIAS EH «hello» PU TUHS DNA» and shut up.