HTML bdo tag
Note: If you don't know what a tag is and/or how you must use it we recommend you to read our HTML tags and attributes tutorial that you can find in our HTML tutorials section.
The
HTML bdo tag allows authors to overrides the the bidirectional algorithm for selected fragments of text. It basically sets the direction of the text between the tags.
Specifies the language of an element's content. The default value in "unknown".
When writing
XHTML code the syntax "xml:lang" represents a preferred alternative in XHTML 1.0 and a replacement in XHTML 1.1 (e.g., xml:lang="en").
Example:
Code begin
<p lang="en">This is a paragraph in english.</p>
<p lang="es">Este es un párrafo en español.</p>Code end
dir
Specifies the text direction of the element's contents and attribute values, as well as tables directionality. It has two possible values that are case insensitive:
- RTL: Right to left.
- LTR: Left to right.
Example:
Code begin
<q lang="he" dir="rtl">...a Hebrew quotation...</q>Code end
There are no events defined for this tag.
See complete list and information about
events in HTML
Common example.
Code |
View |
<bdo dir="ltr">A left to right sentence.</bdo><br /> <bdo dir="rtl">A right to left sentence.</bdo> |
A left to right sentence.
A right to left sentence. |