Name

dir — NN n/a IE n/a DOM 1

Synopsis

Read/Write

The direction of character rendering for the element’s text whose characters are not governed by inherent directionality according to the Unicode standard. Character rendering is either left to right or right to left.

Value

ltr | rtl (case insensitive).

Default

ltr

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.