bdo dir Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:bdo

Description

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

Attribute Values

Value Description
ltr Left-to-right text direction
rtl Right-to-left text direction

The following code shows how to set the text direction:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<p>This paragraph will go left-to-right.</p>
<p><bdo dir="rtl">This paragraph will go right-to-left.</bdo></p>

</body><!--   www . j  a  v a2  s . co  m-->
</html>

Related Tutorials