HTML | bdo Tag

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 is 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:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
    <head>
        <title>bdo tag</title>
        <style>
            body {
                text-align:center;
            }
            h1 {
                color:green;
            }
        </style>
    </head>
    <body>
        <h1>GeeksforGeeks</h1>
        <h2><bdo> Tag</h2>
        <bdo dir="ltr">GeeksforGeeks</bdo><br>
        <bdo dir="rtl">GeeksforGeeks</bdo>
    </body>
</html>                    

chevron_right


Output:

Supported Browsers: The browser supported by <bdo> tag are listed below:

  • Apple Safari
  • Google Chrome
  • Firefox
  • Opera
  • Internet Explorer


My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.