<bdo> tag in HTML 5

In this article I am going to explain about <bdo> tag in HTML 5.
  • 2298

Definition

<bdo> tag in HTML5 is used to reverse or set the direction of text. Using <bdo> tag in HTML5 we can set the direction of text to left to right or right to left.

Declaration Syntax <bdo> tag

<bdo dir="value">Expression </bdo>

Browser Support by <base> tag

The <base> tag is supported in internet explorer, mozilla firefox, Google chrome, opera and safari browsers.

Attributes of <base>tag

Attributes Value Description
dir ltr
rtl
Required. Specifies the text direction of the text inside the <bdo> element

Lets take an example of <base> tag

<html>
<head>
    <title>This is my first web page</title>
</head>
<body>
    <h2>
        This line will go left-to-right. </br> </br> <bdo dir="rtl">This Line will go right-to-left.</bdo>
        </br> </br> <bdo dir="rtl">.tfel-ot-thgir og lliw eniL sihT </bdo>
    </h2>
</body>
</html>

 

Output


Clipboard04.jpg

Further Readings

You may also want to read these related articles :

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

© 2020 DotNetHeaven. All rights reserved.