<bdo> tag

HTML <bdo> tag

The HTML tag describes bi-directional override of the text.

You can use this tag to override the existing text direction.

This is particularly helpful in languages whose direction is from Right to Left.

For Example, languages like Arabic, Urdu, Hebrew etc are written from Right to Left.

Syntax:
<bdo dir=”rtl”> Text…(right to left)</bdo>

Example

<bdo dir="rtl">welcome to html tutorial</bdo>

Default CSS Value

unicode-bidi:  bidi-override;

How Browser will display

INLINE.

Difference between HTML4.01, XHTML and HTML5

HTML4 XHTML HTML5
None None None

Attributes used with <bdo> tag

Attribute Description
dir to set the direction of the text. It can take any one of the 2 values as -
  • ltr - Overrides the direction of the text from Left to Right
  • rtl - Overrides the direction of the text from Right to Left
  • Global Attributes

    The <bdo> tag supports Global attributes.

    Event Attributes

    The <bdo> tag supports Event attributes.

    Supporting Browsers

    supporting-browsers for tags

    Related Tags

    <bdi>.

    Tutorials for all brains!