Name
bdo — HTML 4.01 | HTML5
Synopsis
<bdo> . . . </bdo>
Stands for “bidirectional override” and is used to indicate a
selection of text that reads in the opposite direction than the
surrounding text. For instance, in a left-to-right reading document,
the bdo
element may be used to indicate a
selection of Hebrew text that reads right to left (rtl
).
Start/End Tags
Required/Required
Attributes
Core, Events (XHTML only), HTML5 Global Attributes
dir="ltr|rtl"
Required. Indicates whether the selection should read left to right (
ltr
) or right to left (rtl
).lang="
language code
"
Specifies the language of the element using a language code abbreviation.
xml:lang="
text
"
XHTML only. Specifies languages in XML documents using a language code abbreviation.
Example
<bdo dir=
"ltr">
English phrase in otherwise Arabic text.</bdo>
Get HTML & XHTML Pocket Reference, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.