Name

bdo — <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 ).

Attributes

Core (id, class, style, title ), Events ( XHTML only )

dir="ltr|rtl"

Required. Indicates whether the selection should read left to right (ltr ) or right to left (rtl ).

lang="language code"

This attribute specifies the language of the element using a language code abbreviation.

xml:lang="text"

XHTML only. This is the method for specifying languages in XML documents using a language code abbreviation.

Example

<bdo dir="ltr"> English phrase in an otherwise Arabic text.
</bdo>

Get HTML and XHTML Pocket Reference, 3rd 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.