Version-//W3C//DTD XHTML 1.0 Strict//EN
Elementbdo
Purposeturn off the bidirectional algorithm for the enclosed text
DescriptionThe bdo element allows authors to turn off the bidirectional algorithm for the enclosed text. This element is part of the internationalization efforts of HTML4 and is used to resolve problems that might occur when displaying human languages. Human languages require a certain character order (left-to-right or right-to-left). This ordering can be set on a global scale in a document or Web browser, but there may be local text fragments that must be displayed in a different order. For example, in the English language (read left-to-right), you might quote a document in a language that is intended to be read from right-to-left.
Start tagRequired <bdo>
Attributes
NameTypeDefaultComment
class CDATA #IMPLIEDspace-separated list of classes
dir( ltr | rtl )#REQUIREDdirectionality
idID#IMPLIEDdocument-wide unique id
langNMTOKEN#IMPLIEDlanguage code as RFC3066
onclick CDATA #IMPLIEDa pointer button was clicked; script expression
ondblclick CDATA #IMPLIEDa pointer button was double clicked; script expression
onkeydown CDATA #IMPLIEDa key was pressed down; script expression
onkeypress CDATA #IMPLIEDa key was pressed and released; script expression
onkeyup CDATA #IMPLIEDa key was released; script expression
onmousedown CDATA #IMPLIEDa pointer button was pressed down; script expression
onmousemove CDATA #IMPLIEDa pointer was moved within; script expression
onmouseout CDATA #IMPLIEDa pointer was moved away; script expression
onmouseover CDATA #IMPLIEDa pointer was moved onto; script expression
onmouseup CDATA #IMPLIEDa pointer button was released; script expression
style CDATA #IMPLIEDassociated style info; style sheet data
title CDATA #IMPLIEDadvisory title; text used for titles
xml:langNMTOKEN#IMPLIEDlanguage code as RFC3066
Content( #PCDATA | a | br | span | bdo | map | object | img | tt | i | b | big | small | em | strong | dfn | code | q | samp | kbd | var | cite | abbr | acronym | sub | sup | input | select | textarea | label | button | ins | del | script )*
End tagRequired </bdo>
Referenced in a abbr acronym address b bdo big button caption cite code dd del dfn div dt em fieldset h1 h2 h3 h4 h5 h6 i ins kbd label legend li object p pre q samp small span strong sub sup td th tt var
Example
SourceAppearance
<p><bdo dir="ltr">Now is the time</bdo></p>
<p><bdo dir="rtl">Now is the time</bdo></p>

Now is the time

Now is the time

search Search · star Market
2023-06-19 · John December · Terms © johndecember.com