<BDO>...</BDO>

W3 3.2n
4.0y
NS 3.0n
4.0n
IE 3.0n
4.0n
TV 1.2n
2.1n
Description


 Related pages
Tip:
If you're creating pages containing multiple languages, and/or directions, read the part on Language information and text direction of the HTML 4.0 specification.
This element overrides the bidirectional algorithm, the default algorithm to resolve the direction to show the text. Normally, the bidirectional algorithm is used to show a page which contains both left-to-right and right-to-left text. The algorithm switches the direction when necessary, according to language definition and the dir attribute.

This element turns the bidirectional algorithm of and specifies the base direction for the text contained inside the element.


DTD
<!ELEMENT BDO - - (%inline;)*          -- I18N BiDi over-ride -->
<!ATTLIST BDO
  %coreattrs;                          -- id, class, style, title --
  lang        %LanguageCode; #IMPLIED  -- language code --
  dir         (ltr|rtl)      #REQUIRED -- directionality --
  >
from the HTML 4.0 DTD, "Copyright © World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved."
Attributes

Core attributes: class id style title


W3 3.2n
4.0y
NS 3.0n
4.0n
IE 3.0n
4.0n
TV 1.2n
2.1n
dir
This attribute specifies the direction of the text included in this element. Possible values are : This attribute must be supplied with this element.
W3 3.2n
4.0y
NS 3.0n
4.0n
IE 3.0n
4.0n
TV 1.2n
2.1n
lang
Description of the lang attribute
Examples

Source
Here's some text with both English and Hebrew text,
but already formatted correctly:
<P>
<PRE>
<BDO dir="LTR">english1 2WERBEH english3</BDO>
<BDO dir="LTR">4WERBEH english5 6WERBEH</BDO>
</PRE>
 
Result
Here's some text with both English and Hebrew text, but already formatted correctly:

english1 2WERBEH english3
4WERBEH english5 6WERBEH


Statistics