This website uses cookies

We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you've provided to them or that they've collected from your use of their services. Please read more at our privacy policy page.

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 the right to the 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