Open In App
Related Articles

HTML <bdo> Tag

Improve Article
Save Article
Like Article

The <bdo> stands for Bi-Directional Override. This tag is used to specify the text direction or used to change the current direction.


<bdo dir> Contents... </bdo>

Attributes: This element contains dir attributes which are used to specify the direction of text written inside the <bdo> element. The dir attribute contains two values which are listed below: 

  • rtl: The text direction from right to left (reverse the text).
  • ltr: The text direction from left to right.

Example: The below example illustrate the bdo tag.


<!DOCTYPE html>
    <h2><bdo> Tag</h2>
    <!--This is bdo ltr Tag-->
    <bdo dir="ltr">GeeksforGeeks</bdo><br>
    <!--This is bdo rtl Tag-->
    <bdo dir="rtl">GeeksforGeeks</bdo>


Supported Browsers:

  • Apple Safari
  • Edge 12 and above
  • Google Chrome
  • Firefox
  • Opera
  • Internet Explorer
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 19 Jul, 2022
Like Article
Save Article
Similar Reads
Complete Tutorials