asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Element Attributes > DIR Attribute

dir Attribute


Sets or retrieves the reading order of the specified object.

Applies To: GLOBAL

Syntax

Inline <element dir = ltr | rtl>
Script object.dir = ltr | rtl

Possible Values

ltr Text flow is left-to-right.
rtl Text flow is right-to-left.

The property is read/write with a default value of ltr.

See Also

direction


Need a break ?
Suggested Reading

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph.

If you have any question, comment or suggestion,
please send us a note