HTML bdo Tag Last Updated : 11 Jul, 2025 Comments Improve Suggest changes 6 Likes Like Report The <bdo> (Bidirectional Override) tag in HTML is used to override text directionality, explicitly setting text direction to left-to-right (LTR) or right-to-left (RTL).It can make text go from left to right or right to left.This is helpful for languages like Arabic or Hebrew.It ensures text displays correctly in different languages.Syntax:<bdo dir="ltr">This text will be displayed left-to-right.</bdo> <bdo dir="rtl"> This text will be displayed right-to-left. </bdo> HTML <!DOCTYPE html> <html> <body> <bdo dir="ltr">GeeksforGeeks</bdo><br> <bdo dir="rtl">GeeksforGeeks</bdo> </body> </html> Output:GeeksforGeeksGeeksforGeeksThe <bdo> tag with dir="ltr" forces the text "GeeksforGeeks" to display from left to right, ensuring proper alignment in left-to-right contexts.The <bdo> tag with dir="rtl" forces the same text to display from right to left, which is useful for languages like Arabic or Hebrew.Attributes:This element contains dir attributes which are used to specify the direction of text written inside the <bdo> element. The dir attribute contains two values which are listed below: rtl: Text direction is from right to left (reverses the text).ltr: Text direction is from left to right (default text direction).More Examples of the <q> TagReversing Text Direction HTML <!DOCTYPE html> <html lang="en"> <body> <p>Normal Text:</p> <p>This is normal text displayed in the default direction.</p> <p>Reversed Text:</p> <bdo dir="rtl">This is reversed text displayed in right-to-left direction.</bdo> </body> </html> The <bdo> tag with dir="rtl" reverses the text direction to display it from right to left.Useful for testing or correcting text direction in multilingual content.Displaying Bi-Directional Content HTML <!DOCTYPE html> <html lang="en"> <body> <p>Bi-Directional Content:</p> <p><bdo dir="rtl">This section displays text in reverse direction.</bdo></p> <p>Default Direction:</p> <p>This section remains in the default direction.</p> </body> </html> The <bdo> tag isolates a section of text and overrides its directionality to ensure proper formatting.Ideal for embedding languages like Arabic or Hebrew within a left-to-right document.Best Practices for Using the <bdo> TagUse the <bdo> tag only when you need to override text direction explicitly.Ensure the dir attribute is correctly set to either ltr or rtl for proper direction. Comment M manaschhabra2 Follow 6 Improve M manaschhabra2 Follow 6 Improve Article Tags : Web Technologies HTML HTML-Tags Explore HTML BasicsHTML Introduction5 min readHTML Editors5 min readHTML Basics7 min readStructure & ElementsHTML Elements5 min readHTML Attributes8 min readHTML Headings4 min readHTML Paragraphs5 min readHTML Text Formatting4 min readHTML Block and Inline Elements3 min readHTML Charsets4 min readListsHTML Lists5 min readHTML Ordered Lists5 min readHTML Unordered Lists4 min readHTML Description Lists3 min readVisuals & MediaHTML Colors11 min readHTML Links Hyperlinks3 min readHTML Images7 min readHTML Favicon4 min readHTML Video4 min readLayouts & DesignsHTML Tables10 min readHTML Iframes4 min readHTML Layout4 min readHTML File Paths3 min readProjects & Advanced TopicsHTML Forms5 min readHTML5 Semantics6 min readHTML URL Encoding4 min readHTML Responsive Web Design11 min readTop 10 Projects For Beginners To Practice HTML and CSS Skills8 min readTutorial ReferencesHTML Tags - A to Z List15+ min readHTML Attributes Complete Reference8 min readHTML Global Attributes5 min readHTML5 Complete Reference8 min readHTML5 MathML Complete Reference3 min readHTML DOM Complete Reference15+ min readHTML DOM Audio/Video Complete Reference2 min readSVG Element Complete Reference5 min readSVG Attribute Complete Reference8 min readSVG Property Complete Reference7 min readHTML Canvas Complete Reference4 min read Like