What is the <bdo> element in HTML?
The bi-directional text override <bdo> element tells the browser to override the directionality of the text with the one specified in the dir attribute.
Attributes
<bdo> supports all global attributes. The direction attribute dir takes on the following values for the directionality of the text:
dir | Description |
ltr | represents if the text needs to be rendered from left-to-right |
rtl | represents if the text needs to be rendered from right-to-left |
Code
In the above code, the text in the <bdo dir="rtl"> tag will be rendered from right-to-left even though its default direction is left-to-right.
Free Resources
Copyright ©2026 Educative, Inc. All rights reserved