<bdo>


HTML <bdo> Tag

Instance

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>php中文网(php.cn)</title> 
</head> 
<body>

<p>该段落文字从左到右显示。</p>  
<p><bdo dir="rtl">该段落文字从右到左显示。</bdo></p>  

</body>
</html>

Run Example»

Click the "Run Instance" button to view the online instance


Browser support

1000.png

All major browsers support< bdo> tag.


Tag definition and usage instructions

bdo refers to bidi override (Bi-Directional Override).

<bdo> tag is used to override the default text direction.


Differences between HTML 4.01 and HTML5

None.


Properties

PropertiesValueDescription
dirltr
rtl
Required. Specifies the direction of text within the <bdo> element.


Global attributes

<bdo> tag supports global attributes of HTML.


Event attributes

<bdo> tag supports HTML event attributes.