- HTML Tutorial
- HTML - Home
- HTML - History and Evolution
- HTML - Overview
- HTML - Editors
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Headings
- HTML - Paragraphs
- HTML - Quotations
- HTML - Comments
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Style Sheet
- HTML - CSS Classes
- HTML - CSS IDs
- HTML - Images
- HTML - Image Map
- HTML Tables
- HTML - Tables
- HTML - Headers & Caption
- HTML - Table Styling
- HTML - Table Colgroup
- HTML - Nested Tables
- HTML Lists
- HTML - Lists
- HTML - Unordered Lists
- HTML - Ordered Lists
- HTML - Definition Lists
- HTML Links
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Iframes
- HTML - Blocks
- HTML Backgrounds
- HTML - Backgrounds
- HTML Colors
- HTML - Colors
- HTML - RGB
- HTML - HEX
- HTML - HSL
- HTML Forms
- HTML - Forms
- HTML - Form Attributes
- HTML - Form Control
- HTML - Input Attributes
- HTML Media
- HTML - Video Element
- HTML - Audio Element
- HTML - Embed Multimedia
- HTML Header
- HTML - Head Element
- HTML - Adding Favicon
- HTML - Javascript
- HTML Layouts
- HTML - Layouts
- HTML - Layout Elements
- HTML - Layout using CSS
- HTML - Responsiveness
- HTML - Symbols
- HTML - Emojis
- HTML - Style Guide
- HTML Graphics
- HTML - SVG
- HTML - Canvas
- HTML APIs
- HTML - Geolocation API
- HTML - Drag & Drop API
- HTML - Web Workers API
- HTML - WebSocket
- HTML - Web Storage
- HTML - Server Sent Events
- HTML Miscellaneous
- HTML - MathML
- HTML - Microdata
- HTML - IndexedDB
- HTML - Web Messaging
- HTML - Web CORS
- HTML - Web RTC
- HTML Demo
- HTML - Audio Player
- HTML - Video Player
- HTML - Web slide Desk
- HTML Tools
- HTML - Velocity Draw
- HTML - QR Code
- HTML - Modernizer
- HTML - Validation
- HTML - Color Code Builder
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
- HTML Resources
- HTML - Quick Guide
- HTML - Useful Resources
- HTML - Color Code Builder
- HTML - Online Editor
HTML - <bdo> Tag
HTML <bdo> tag stands for Bi-Directional Override. This element overrides the current text directionality, causing the text to be shown in a new direction. HTML <bdo> tag includes global attributes, one of which is dir, which is the direction in which the text should be rendered in this element’s contents.
Syntax
<bdo dir="..">...</bdo>
Attribute
HTML bdo tag supports Global and Event attributes of HTML. Some specific attributes are accepted as well which are listed bellow.
Attribute | Values | Description |
---|---|---|
dir | ltr rtl auto |
It defines the the text direction on the websites. |
Examples of HTML bdo Tag
In the bellow examples we will see the usage of bdo element, will style bdo element using internal css as well. Each exmaple was shown for different purpose.
Defining bdo element with dir Attribute
In the following example, we are creating an HTML document to see the workings of the <bdo> tag with HTML dir Attribute.
<!DOCTYPE html> <html> <body> <p> Bellow paragraph will go right-to-left. </p> <p> <bdo dir="rtl"> Tutorialspoint: Simply Easy Learning </bdo> </p> </body> </html>
Styling bdo element with Internal CSS
Let's look at the following example, where we are creating an HTML document and using the <bdo> tag and its attribute, as well as the CSS properties to style the bdo’s content, as follows −
<!DOCTYPE html> <html> <head> <style> bdo { color: green; font-style: italic; } </style> </head> <body> <p> Default Direction of the Context </p> <p> <bdo> Tutorialspoint: Simply Easy Learning </bdo> </p> <p> Bellow paragraph will go right-to-left. </p> <p> <bdo dir="rtl"> Tutorialspoint: Simply Easy Learning </bdo> </p> </body> </html>
Supported Browsers
Tag | |||||
---|---|---|---|---|---|
bdo | Yes | Yes | Yes | Yes | Yes |
To Continue Learning Please Login
Login with Google