HTML <bdo> Tag Definition, Usage and Examples

The HTML <bdo> Tag stands for Bi Directional Override. Using the HTML <bdo> tag, it is possible to change the text’s direction from left to right to right to left and vice versa. It is most commonly used when the direction of the text placed within the <bdo> HTML Tag is known. The <bdo> HTML Tag is part of Formatting HTML category in HTML Element Reference. The attributes of the <bdo> HTML Tag are global attributes, event attributes, and dir attributes. 

<bdo> code block example to learn how it works is given below. 

<bdo dir="rtl">text</bdo>

The second example usage of the “<bdo>” code block example is below. 

<p>Sandara is very famous in school and shouted<bdo dir="rtl">"Hey Girls!"</bdo></p>

What is <bdo> HTML Tag?

The <bdo> HTML Tag specifies the text direction or changes the current direction. Bi-Directional Override is commonly known as <bdo> HTML Tag.

How to Use <bdo> HTML Tag?

The <bdo> HTML Tag is used to override the text’s default directionality. It is used to show characters from right-to-left languages such as Hebrew and Arabic.

Example Usage of <bdo> HTML Tag?

The following examples of usage of <bdo> HTML tag are shown below.  

<bdo dir="rtl">
We are born to win.
</bdo>
<!-- Switch text direction -->
<p>Iam so Happy.</p>
<p><bdo dir="rtl">Lets go.</bdo></p>

What are the Attributes of <bdo> HTML Tag?

There are multiple attributes for the <bdo> HTML Tag. The following attributes are listed below.

  • Global Attributes: The <bdo> HTML Tag supports global attributes. All HTML elements, even those not specified in the standard, can have global attributes. This means that any non-standard elements must nevertheless allow certain characteristics, even if using such elements makes the content non-HTML5 compliant.
  • Event Attributes: The <bdo> HTML Tag supports event attributes. The Event Attributes always have a name that begins with “on” and is followed by the name of the event for which it is intended. They specify a script to run when an event of the defined type is dispatched to the element with the specified attributes.
  • Dir Attribute: The <bdo> HTML Tag supports dir attribute. The dir attribute specify the text direction within the <bdo> element.

What are the Default CSS Settings for <bdo> HTML Tag?

The following are the Default CSS Settings for the <bdo> HTML Tag.

html {
    font-family: cursive;
}

bdo {
}

What are the Related other HTML Tags to <bdo>?

The other related HTML Tags to the <bdo> HTML Tag are listed below.

  • <acronym> HTML Tag: The <acronym> HTML Tag is related to <bdo> HTML Tag because they are both in formatting HTML Tags. The <acronym> HTML Tag is similar to abbreviation tag. The abbreviation is defined using the <acronym> HTML Tag.
  • <abbr> HTML Tag: The <abbr> HTML Tag is related to <bdo> HTML Tag because they are both in formatting HTML Tags. The <abbr> HTML Tag is used to define abbreviations such as HTML, CSS, and so on.
  • <big> HTML Tag: The <big> HTML Tag is related to <bdo> HTML Tag because they are both in formatting HTML Tags. The <big> HTML Tag is used to define large text.
  • <blockquote> HTML Tag: The <blockquote> HTML Tag is related to <bdo> HTML Tag because they are both in formatting HTML Tags. The <blockquote> HTML Tag is used to include quotations from other sources.
Holistic SEO
Follow SEO

Leave a Comment

HTML <bdo> Tag Definition, Usage and Examples

by Holistic SEO time to read: 3 min
0