HTML <bdo> tag

Use of <bdo> tag

The <bdo> tag stands for Bi-Directional Override. It defines a part of text which can override the current text direction.
Display: Inline

Example of <bdo> tag

<bdo dir="rtl"> Texts </bdo>

Supported Browsers

Tag Chrome browser Internet explorer browser Firefox browser Safari browser Opera browser
<bdo> Yes Yes Yes Yes Yes

Full Code Examples

<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>
<bdo dir="ltr"> By default the current text directions is left-to-right. </bdo> <br>
<bdo dir="rtl"> This sentence has text directions form right-to-left. </bdo>
</p>
</body>
</html>

Output

By default the current text directions is left-to-right.
This sentence has text directions form right-to-left.

Attribute Values

Attribute Value Notes
dir ltr
rtl
It defines the text direction inside the <bdo> element.

Without the attribute, <bdo> tag could not defined by HTML alone. Be sure to add dir attribute with its value..

More Reference

Also, you can use CSS to change the direction of texts.

<!DOCTYPE html>
<html>
<head>
<style>
bdo {
    direction: rtl;
}
</style>
</head>
<body>
<p>
<bdo> This sentence has text directions form right to left. </bdo>
</p>
</body>
</html>