The BidiOrdering class represents an HTML tag that alters the language and direction of text. An HTML <BDO> string requires two attributes, one for language and the other for the direction of the text.
The BidiOrdering class allows you to:
For more information about using the <BDO> HTML tag, see the W3C
Web site.
The following example creates a BidiOrdering object and sets its language and direction:
need code
The print statement produces the following tag:
<BDO lang="he" dir="rtl"> Some Hebrew text. </BDO>
When you use this tag in an HTML page, browsers that can understand the <BDO> tag display the example like this:
.txet werbeH emoS
Note: You may need to install a browser plug-in for your browser to be able to use the tag.