bdo Element

Description

The bdo element specifies an explicit text direction for its content, overriding the automatic directionality that would usually be applied.

We must use the bdo element with the dir attribute, which has the allowed values of rtl (for right- to-left layout) and ltr (for left-to-right layout).

Example

The following code uses the bdo Element.


<!DOCTYPE HTML>
<html>
<body>
  <p>
    This is left-to-right:
    <bdo dir="ltr">This is a test</bdo>
  </p><!--from  w ww. ja v  a 2 s.  co m-->
  <p>
    This is right-to-left:
    <bdo dir="rtl">This is a test</bdo>
  </p>
</body>
</html>

Click to view the demo





















Home »
  HTML CSS »
    HTML »




HTML Introduction
HTML Document
HTML Section
HTML Group Content
HTML Text Marker
HTML Table
HTML Form
HTML Embed