dir

The dir HTML attribute specifies the element's text directionality.

Syntax

dir="value"
Value Description
auto direction is to be determined programmatically using the contents of the element
ltr left-to-right
rtl right-to-left

Examples

auto

ltr

rtl

Web Hypertext Application Technology Working Group (WHATWG)

World Wide Web Consortium (W3C)

Home Menu