HTML <bdo>タグ


テキストの方向を指定します。

<bdo dir="rtl">
This text will go right-to-left.
</bdo>

定義と使用法

BDOはBi-DirectionalOverrideの略です。

タグは、現在の<bdo>テキストの方向を上書きするために使用されます。


ブラウザのサポート

Element
<bdo> Yes Yes Yes Yes Yes

属性

Attribute Value Description
dir ltr
rtl
Required. Specifies the text direction of the text inside the <bdo> element

グローバル属性

この<bdo>タグは 、HTMLのグローバル属性もサポートしています。


イベント属性

この<bdo>タグは、HTMLのイベント属性もサポートしています。


関連ページ

HTML DOMリファレンス:Bdoオブジェクト


デフォルトのCSS設定

ほとんどのブラウザは<bdo>、次のデフォルト値で要素を表示します。

bdo {
  unicode-bidi: bidi-override;
}