XHTML » Tags » bdo

<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.


<?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">
<title>DevGuru XHTML bdo Tag Example</title>
<bdo dir="rtl"">
Very few browsers support this tag.
<br />
.gat siht proppus sresworb wef yreV
.gat siht troppus sresworb wef yreV
Very few browsers support this tag.
Language(s): XHTML

See Also: