html
  1. html-bdo-tag

HTML <bdo> Tag

  • The <bdo> tag in HTML stands for "Bi-Directional Override."
  • It's used to override the text direction.

<p>This text is written from left to right.</p>
<p><bdo dir="rtl">This text is written from right to left.</bdo></p>
Try Playground

The <bdo> tag comes in pairs. The dir attribute specifies the direction of the text. The text between the tags is displayed with the specified text direction.

Importance of the Bdo Tag

  • The <bdo> tag is important because it allows you to override the current text direction on a web page.
  • The <bdo> tag can help to improve the readability of text in languages that are read from right to left.
  • Search engines use the <bdo> tag to index the structure and content of web pages.

Bdo Tag Attributes

The <bdo> tag has one attribute that can be used to specify the direction of the text:

  • dir: Specifies the direction of the text.
Summary

This can be especially useful for languages that are written from right to left, such as Arabic or Hebrew, when you want to display specific text in the opposite direction within an overall left-to-right context, or vice versa.

Published on: