W3Schools.com

HTML <bdo> Tag

Example

Specify the text direction:

<bdo dir="rtl">Here is some Hebrew text!</bdo>

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The <bdo> tag is supported in all major browsers.


Definition and Usage

bdo stands for Bi-Directional Override.

The <bdo> tag is used to override the current text direction.


Differences Between HTML and XHTML

NONE


Required Attributes

DTD indicates in which HTML 4.01/XHTML 1.0 DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.

Attribute Value Description DTD
dir ltr
rtl
Specifies the text direction of the text inside a <bdo> element STF


Standard Attributes

The <bdo> tag supports the following standard attributes:

Attribute Value Description DTD
class classname Specifies a classname for an element STF
id id Specifies a unique id for an element STF
lang language_code Specifies a language code for the content in an element STF
style style_definition Specifies an inline style for an element STF
title text Specifies extra information about an element STF
xml:lang language_code Specifies a language code for the content in an element, in XHTML documents STF

More information about Standard Attributes.


Event Attributes

The <bdo> tag does not support any event attributes.

More information about Event Attributes.


WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$7.95/mo SEO Hosting
Premium Website Design
WEB BUILDING
XML Editor - Free Trial!
FREE Website BUILDER
Free Website Templates Free CSS Templates
Make Your Own Website
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE