Skip to content
Related Articles
Open in App
Not now

Related Articles

HTML | <bdo> dir Attribute

Improve Article
Save Article
  • Last Updated : 10 Oct, 2019
Improve Article
Save Article

The HTML <bdo> dir attribute is used to define the text direction of a <bdo> element.


<bdo dir="ltr|rtl">

Attribute Values:

  • ltr: It defines the text direction from left-to-right.
  • rtl: It defines the text-direction from right-to-left.


<!DOCTYPE html> 
    <title>HTML bdo dir Attribute</title
<body style="text-align:center;">
    <h1 style="color:green;">
    <h2>Bdo dir Attribute</h2
    <bdo dir="ltr">GeeksforGeeks</bdo>
    <bdo dir="rtl">GeeksforGeeks</bdo


Supported Browsers: The browsers supported by HTML <bdo> dir attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera
My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!