HTML Tag Reference - HTML tag <bdo>








The value of the dir attribute of <bdo> determines the reading direction of text. The direction can be either from left to right or from right to left.

<bdo dir='ltr|rlt'> . . . </bdo>

Browser compatibility

<bdo> Yes Yes Yes Yes Yes

What's new in HTML5

None.

Attribute

dir
Possible value:ltr|rtl. Set the text direction of the text




Global Attributes

The <bdo> tag supports the Global Attributes in HTML.

Event Attributes

The <bdo> tag supports the Event Attributes in HTML.

Default CSS Settings

bdo { 
    unicode-bidi: bidi-override;
}

Example

A demo showing how to use bdo tag.

<html>
<body>
     <bdo dir="ltr">This text is read from left to right</bdo>
     <br/>
     <bdo dir="rtl">tfel ot thgir morf daer si txet sihT</bdo>
</body>
</html>

Click to view the demo