Loading...
HTML <bdo> Tag

HTML <bdo> Tag

In this tutorial, we will learn about bdo tag in HTML with the help of examples.


<bdo> Tag

Bdo tag <bdo> tag is used to override the current text direction.

BDO stands for Bi-Directional Override.

Note : We must have to provide the dir attribute for <bdo> tag.

Syntax

<bdo>....</bdo>

Example

<!DOCTYPE html>
<html>
  <head>
    <title>Bdo Tag</title>
  </head>
  <body>
    <bdo dir = "rtl">It's harder to read code than to write it.</bdo>
    <bdo dir = "ltr">It's harder to read code than to write it.</bdo>
  </body>
</html>

Output

It's harder to read code than to write it.
It's harder to read code than to write it.

Specific Attribute

Attribute Value Description
dir ltr
rtl
Specifies the text direction of the text inside the <bdo> tag

Global Attribute

Bdo Tag support all the global attributes of HTML.


Event Attribute

Bdo Tag support all the event attributes of HTML.


Next Tutorial

We hope that this tutorial helped you develop better understanding of the concept of <bdo> tag in HTML.

Keep Learning : )

In the next tutorial, you'll learn about HTML blockquote Tag.

- Related Topics