Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML bdo dir attribute

HTML dir attribute

HTML bdo Tag Reference HTML tag

Example

A bdo element with a specified text direction:

The text in this paragraph is displayed from right to left.

Try it »


Browser support

Internet Explorer Firefox Opera Google Chrome Safari

All major browsers support the dir attribute.


Definition and Usage

The required dir attribute specifies the direction of the text in the element.


Differences between HTML 4.01 and HTML5

NONE.


Syntax

Attribute values

Value Description
ltr Text direction from left to right.
rtl Text direction from right to left.

HTML bdo Tag Reference HTML tag