Syntax | This element uses separate opening and closing tags.<bdo>...</bdo> |
---|---|
Usage | The <bdo> tag is used set the text direction of the enclosed text. The text is placed between the opening and closing tags. |
Content Model | The <bdo> element can contain the following tags, and Text, between its opening and closing tags. <a>
<abbr>
<acronym>
<applet>
<b>
<basefont>
<bdo>
<big>
<br>
<button>
<cite>
<code>
<del>
<dfn>
<em>
<font>
<i>
<iframe>1
<img>
<input>
<ins>
<kbd>
<label>
<map>
<object>
<q>
<s>
<samp>
<script>
<select>
<small>
<span>
<strike>
<strong>
<sub>
<sup>
<textarea>
<tt>
<u>
<var>
Notes:1. The <bdo> element can contain the <iframe> tag when using DTD Transitional and Frameset documents but not Strict documents. 2. Red tags have been deprecated and are allowed in DTD Transitional and Frameset documents but not Strict documents. |
Required | Tag Specific | Core | Focus | Events | Language |
---|---|---|---|---|---|
dir | id class style title | onclick1 ondblclick1 onkeydown1 onkeypress1 onkeyup1 onmousedown1 onmousemove1 onmouseout1 onmouseover1 onmouseup1 | lang xml:lang1 | ||
Notes: 1. XHTML only. |
Attribute | Description |
---|---|
dir | The dir attribute specifies the direction of the text. For left-to-right use the value "ltr". For right-to-left use the value "rtl". Note: This is a required attribute. |
id | The id attribute assigns a unique name to a tag. This allows style sheets or scripts to reference the tag. See id Example |
class | The class attribute assigns a class name to a tag. The class name does not need to be unique. More than one tag can have the same class name. This allows style sheets or scripts to reference multiple tags with a single class name. See class Example |
style | The style attribute specifies styles for the tag. For Cascading Style Sheets (CSS), the syntax is name:value. Each name:value pair is separated by semicolons. See style Example |
title | The title attribute specifies additional information about the tag. It is common for browsers to display the title when the pointing device stops over the object. See title Example |
onclick | The onclick attribute specifies a
script to be run when the object is clicked with a mouse or other pointing device. See onclick Example Note: XHTML only. |
ondblclick | The ondblclick attribute specifies a
script to be run when the object is double clicked with a mouse or other pointing device. See ondblclick Example Note: XHTML only. |
onkeydown | The onkeydown attribute specifies a
script to be run when a key is pressed down. See onkeydown Example Note: XHTML only. |
onkeypress | The onkeypress attribute specifies a
script to be run when a key is pressed and released. See onkeypress Example Note: XHTML only. |
onkeyup | The onkeyup attribute specifies a
script to be run when a key is released. See onkeyup Example Note: XHTML only. |
onmousedown | The onmousedown attribute specifies a
script to be run when the mouse button, or other pointing device button, is pressed while over the object. See onmousedown Example Note: XHTML only. |
onmousemove | The onmousemove attribute specifies a
script to be run when the mouse, or other pointing device, is moved while it is over the object. See onmousemove Example Note: XHTML only. |
onmouseout | The onmouseout attribute specifies a
script to be run when the mouse, or other pointing device, is moved away from an object after being over it. See onmouseout Example Note: XHTML only. |
onmouseover | The onmouseover attribute specifies a
script to be run when the mouse, or other pointing device, is moved onto the object. See onmouseover Example Note: XHTML only. |
onmouseup | The onmouseup attribute specifies a
script to be run when the mouse button, or other pointing device button, is released while over the object. See onmouseup Example Note: XHTML only. |
lang | The lang attribute specifies a language. This attribute can help the browser to correctly display text. This attribute can also be useful for braille translation software, speech synthesizers, dictionary definitions, etc. See lang Example |
xml:lang | The xml:lang attribute specifies a language for XHTML documents. This attribute can help the browser to correctly display text. This attribute can also be useful for braille translation software, speech synthesizers, dictionary definitions, etc. See xml:lang Example Note: XHTML only. |
<bdo> example. |