BDO (<bdo>) Tag

by Jai 30-May-19

0 153


BDO stands for Bi-Directional Override. The HTML <bdo> tag is mainly used in right to left written documents such as Persian, Urdu, etc. This tag reverse the text direction i.e. used for text direction overriding.

The <bdo> tag is written as <bdo dir=""></bdo> that describe the text direction. The text is inserted between start and end tag with attribute where dir attribute is mandatory. The value of the dir attribute must contain RTL (right to left) or LTR (left to right).

Browsers Support:

Google Chrome
Firefox
Safari
Internet Explorer

BDO (<bdo>) Tag

BDO (<bdo>) Tag

BDO (<bdo>) Tag

BDO (<bdo>) Tag

Code:

<!DOCTYPE html>
<html>
<head>
  <title> HTML Bdo Tag </title>
</head>
<body>
<h2> HTML Bdo Tag </h2>
<p>
<bdo dir="ltr">
This text will go left-to-right.
</bdo><br>
</p>
<p>
<bdo dir="rtl">
This text will go right-to-left.
</bdo>
 <br>
</p>
</body>
</html>

Output:

BDO (<bdo>) Tag


Share:


Comments

    No Comments Yet.

Leave a Reply