XHTML » Tags » bdo

Syntax:
<bdo> ... </bdo>

The bdo tag is used to change the direction that the text reads, from left to right (the default) over to right to left, or vice versa. The purpose of this tag is to allow HTML to correctly display a great variety of languages, such as Chinese and Hebrew (which are read right to left), in the same document.

The separate closing tag is mandatory.
 

Examples

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>DevGuru XHTML bdo Tag Example</title>
</head>
<body>
<bdo dir="rtl"">
Very few browsers support this tag.
<br />
.gat siht proppus sresworb wef yreV
</bdo>
</body>
</html>
Output:
.gat siht troppus sresworb wef yreV
Very few browsers support this tag.
Language(s): XHTML

See Also: