Share on Google+Share on Google+

HTML5 bdo tag , Definition of  <bdo> tag in html5.

In this section, you will learn about bdo tag of HTML5

HTML5 bdo tag , Definition of  <bdo> tag in html5.

In this illustration we informing about the use of  <bdo> tag in html5. The <bdo>tag(bidirectional override) specifies the direction of text displaying. This tag is useful when the text is of the languages/scripts ,which are written from right to left and Bydefault HTML content is typically rendered from left to right. The<bdo> tag must have the ending </bdo> tag. The <bdo> tag doesn't alter the language or scripts, it serves as a identifier.

Declaration Syntax <bdo> tag:

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

The <bdo> tag has a specific attribute dir, which has two values as given below:

dir= " ltr "  It specify the direction of text from left to right.

dir= " rtl "  It specify the direction of text from right to left.

Example: bdotag.html

 <!DOCTYPE html>
<title>Example of bdo tag</title>
<p><b>using attribute value=rtl </b></p>
<bdo dir="rtl">This is very easy to understand! </bdo><br>
<p><b>using attribute value = ltr</b></p>
<bdo dir="ltr">This is very easy to understand!</bdo>


Note: See the browser compatible page for successfully rendering the program.

Download This Example:


Posted on: September 2, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.