Posts Tagged ‘specify the direction of the text’

HTML bdo tag


Description:

bdo stands for Bi-Directional Override.
The HTML bdo tag allows authors to override the bidirectional algorithm for specific fragments of text. What it basically does is to specify the direction of the text in its content using the "dir" attribute. The <bdo> tag is used to override the current text direction.

Remember, that the presence of the "dir" attribute in this element is mandatory.

Example:

Code View
Like the popular hebrew phrase says: "<bdo dir="rtl">…popular hebrew phrase…</bdo>". Like the popular hebrew phrase says: "…popular hebrew phrase…".

Attributes:

Attribute

Value Description
dir ltr | rtl Defines the text direction
Designed for Mytoptutorials.com