<bdo>
InlineOverrides the bidirectional text direction. Forces text to display in a specific direction regardless of content.
Common Attributes
dirExample
<bdo dir="rtl">This text is right-to-left.</bdo>
About the <bdo> Element
The <bdo> HTML element belongs to the Inline category of HTML elements. Overrides the bidirectional text direction. Forces text to display in a specific direction regardless of content. Understanding when and how to use this element is essential for building well-structured, accessible, and SEO-friendly web pages.
The <bdo> element requires both an opening <bdo> and closing </bdo> tag. Content placed between these tags becomes the element's children. This element is part of the current HTML Living Standard and is supported in all modern browsers including Chrome, Firefox, Safari, and Edge.
Proper use of semantic HTML elements like <bdo> improves document structure, helps screen readers interpret content correctly, and provides signals to search engines about the purpose of different sections of your page. This leads to better accessibility scores, improved SEO rankings, and more maintainable code.