BDO (<bdo>) Tag
0 2989
BDO stands for Bi-Directional Override. The HTML <bdo> tag is mainly used in the right to left written documents such as Persian, Urdu, etc. This tag reverses 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 the start and end tag with an 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 |
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:
Share:
Comments
Waiting for your comments