This is an important message requiring you to make a choice if you're based in the EU.

HTML <bdo> Tag

The <bdo> tag ("bidirectional override") sets the direction of text output from right to left. It is used mainly with languages where reading occurs from right to left (for example, Arabic).

The dir attribute is required option for the <bdo> tag. It defines the direction within the <bdo> tag. The dir attribute can take one of two values:


The content of the <bdo> element is being written between the opening (<bdo>) and the closing (</bdo>) tags.


<!DOCTYPE html>
    <title>Title of the document</title>
    <p>Text from left to right </p>
      <bdo dir="rtl">And this one, from right to left</bdo>.



Attribute Value Description
dir ltr
Defines the direction of the text from left to right or from right to left.

The <bdo> tag supports also the Global Attributes and the Event Attributes.

Browser support

Do you find this helpful?

Related articles