dir

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

Syntax

dir="value"
ValueDescription
autodirection is to be determined programmatically using the contents of the element
ltrleft-to-right
rtlright-to-left

Examples

1 · auto

2 · ltr

3 · rtl

accesskey

autocapitalize

class

contenteditable

data

draggable

hidden

id

inputmode

is

lang

spellcheck

style

tabindex

title

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu