Home Tutorial Html Html5 HTML5 bdo tag , Definition of  <bdo> tag in html5.

 
 

Share on Google+Share on Google+
HTML5 bdo tag , Definition of  <bdo> tag in html5.
Posted on: September 2, 2010 at 12:00 AM
Advertisement
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>
<html>
<head>
<title>Example of bdo tag</title>
</head>
<body>
<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>
</body> 
</html>

Output:

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

Download This Example:

Advertisement

Related Tags for HTML5 bdo tag , Definition of  <bdo> tag in html5.:


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.

Posted on: September 2, 2010

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com