View video tutorial

HTML <bdo> Tag

HTML

The <bdo> tag is used to override the current text direction.

HTML <bdo> Tag


This tag is used to specify the direction of the text or to change the current direction.

Element Attributes

Attribute Value Description
dir ltr
rtl
ltr: Indicates that the text should go in a left-to-right direction. rtl: Indicates that the text should go in a right-to-left direction.

Global attributes

Global attributes may be applied on all elements, although some elements may have no effect on them.

<accesskey>, <class>, <contenteditable>, <contextmenu>, <data-*>, <dir>, <draggable>, <dropzone>, <hidden>, <id>, <lang>, <spellcheck>, <style>, <tabindex>, <title>, <translate>.

Learning with HTML Editor "Try it Now"

You can edit the HTML code and view the result using online editor.

Example

<p><bdo dir="ltr">This text will go from right-to-left.</bdo></p>
<p><bdo dir="rtl">This text will go from right-to-left.</bdo></p> 
Try it Now »

Click on the "Try it Now" button to see how it works.