Open In App

HTML <bdo> Tag

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Share
Report issue
Report

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

Syntax: 
 

<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.
 

HTML




<!DOCTYPE html>
<html>
 
<body>
    <h1>GeeksforGeeks</h1>
    <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>
</body>
 
</html>


Output: 
 

Supported Browsers:

  • Apple Safari
  • Edge 12 and above
  • Google Chrome
  • Firefox
  • Opera
  • Internet Explorer

Last Updated : 19 Jul, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads