HomeReferencesHTML Tags

HTML Tag: bdo

Bi-directional text. Defines an element that has different directional content. This is usually used with languages that are read in a different direction to the default language. For example, if Hebrew were used in an English document, it would need to be defined as being read from right-to-left.

HTML Dog, The Book HTML Dog book cover

HTML Dog is hosted by Titan Internet

Required Attributes

  • dir is used to specify the direction and can be set to ltr (left-to-right) or rtl (right-to-left).

Optional Attributes

  • xml:lang can be used to specify the language of the element.
  • Core attributes

Example


<p>The output of this <bdo dir="rtl">word</bdo> will actually be "drow".</p>