Back to the html tags list

HTML <bdo> Tag

The <bdo> tag is used to make your text go the opposite way to the defualt.

Where/how To Use The <bdo> Tag

Use in head or body section? body
Inline or Block level tag? Inline
HTML Tag Syntax? <start tag>CONTENT</end tag>
XHTML Tag Syntax? <start tag>CONTENT</end tag>

Example

Code Output
<bdo dir="rtl">The bdo tag is used for backwards text - Like in the Hebrew language</bdo> The bdo tag is used for backwards text - Like in the Hebrew language
<bdo dir="ltr">The bdo tag is also used for generating the text left to right</bdo> The bdo tag is also used for generating the text left to right


Notes

  • In XHTML this tag must be closed

  • Whatever you choose for the href attribute, it will be added onto the start of a link or image that is relative (not absolute)

Attributes for the base tag

Attribute

Description

Value(s)

DOCTYPE

Strict DOCTYPE Attributes

dir

Specifies the direction of the text.

rtl - Right to Left
ltr - (Left to Right)

Strict, Transitional and Frameset

Common attributes for the bdo tag

class, style, id, title, dir, xml:lang, lang

Details for Common html Attributes.

Javascript Event attributes for the bdo tag

none

Details for Javascript Event Attributes.


Back to the html tags list