Spread the love

HTML <bdo> Tag stands for “bidirectional override” which is employed to overrides the current/default text direction. This tag sets the direction of content within it to render on the browser from left to right or right to left.

The <bdo> Tag is beneficial for the languages which are written from right to left like Arabic and Hebrew.

BDO stands for Bi-Directional Override.

The <bdo> Tag is employed to override the present text direction.

Example:-

 <!DOCTYPE html>  
<html>  
<head>  
    <title>HTML Bdo tag</title>  
 </head>  
<body>  
     <h2>Example of HTML bdo tag</h2>  
     <p style="color:#606060">This is Normal Content with default directionality</p>  
     <p>This is with left to right directionality:  
         <bdo dir="ltr" style="color: gray;font-weight: 700;">A beautiful Flower</bdo>  
     </p>  
      <p>This is with right to left directionality:  
         <bdo dir="rtl" style="color:blue;font-weight: 700;">A beautiful Flower</bdo>  
      </p>  
 </body>  
</html>  

Output:-

HTML Bdo tag

Example of HTML bdo tag


This is Normal Content with default directionality


This is with left to right directionality: A beautiful Flower


This is with right to left directionality: A beautiful Flower


Spread the love

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *