<bdo> - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:bdo

Introduction

The bdo element marks text direction for its content.

The bdo element dir attribute sets the values of rtl (for right-to-left layout) and ltr (for left-to-right layout).

The bdo Element summary

Item Value
Element bdo
Local AttributesNone, but the dir global attribute is required
Tag Style Start and end tag
New in HTML5No
Changes in HTML5 None
Style ConventionNone

The following code shows the bdo element in use.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
   <head> 
      <title>Example</title> 
   </head> 
   <body> 
      <p>
          This is left-to-right: 
         <bdo dir="ltr">I like CSS</bdo> 
      </p> 
      <p>
          This is right-to-left: 
         <bdo dir="rtl">I like HTML</bdo> 
      </p>  
   </body><!--  ww  w .j ava 2 s  .  com-->
</html>

Related Tutorials