Horje

How to add HTML <bdo> dir Attribute

Specify the text direction.

Definition and Usage

The required dir attribute specifies the text direction of the text inside a <bdo> element.

Browser Support

Syntax

<bdo dir="ltr|rtl">

Attribute Values

Value Description
ltr Left-to-right text direction
rtl Right-to-left text direction
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>
<h1>The bdo rtl attribute</h1>
<p>Hello world. <bdo dir="rtl">Hello world</bdo></p>
</body>
</html>

Output should be:

How to add HTML <bdo> dir Attribute




Type :
html
Category :
Web Tutorial
Sub Category :
HTML Tag
Uploaded by :
Admin