HTML bdo Tag

HTML <bdo> Tag: BDO is the acronym of Bi-Directional Override. The HTML body tag is used to override the text direction.

Syntax:

<bdo>
–content–
</bdo>

Contents



HTML <bdo> Tag

The HTML <bdo> tag supports both the global and event attributes.

Example:

<!DOCTYPE html>
<html>
<body>
<p>This is the current sentence from left to right.</p>  
<p><bdo dir="rtl">Thi sentence will go from right-to-left.</bdo></p>  
</body>
</html>

Output:

Attributes supported by the <bdo> tag

Attribute Value Description
dir ltr
rtl
Specifies the text direction of the text inside the element

Global and event attributes

The HTML <bdo> tag supports both the global and event attributes.