Example
Specify the text direction:<bdo dir="rtl">Here is some Hebrew text!</bdo>
Definition and Usage
bdo stand for bidirectional override.The <bdo> tag allows you to specify the text direction and override the bidirectional algorithm.
Browser Support
The <bdo> tag is supported in all major browsers.
Note: This tag is not supported in Safari version 2 and earlier.
Differences Between HTML and XHTML
NONERequired Attributes
DTD indicates in which HTML 4.01/XHTML 1.0 DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.Attribute | Value | Description | DTD |
---|---|---|---|
dir | ltr rtl | Specifies the text direction of the text inside a bdo element | STF |
Standard Attributes
The <bdo> tag supports the following standard attributes:Attribute | Value | Description | DTD |
---|---|---|---|
class | classname | Specifies a classname for an element | STF |
id | id | Specifies a unique id for an element | STF |
lang | language_code | Specifies a language code for the content in an element | STF |
style | style_definition | Specifies an inline style for an element | STF |
title | text | Specifies extra information about an element | STF |
xml:lang | language_code | Specifies a language code for the content in an element, in XHTML documents | STF |