HTML <bdo> Tag
Description
The <bdo>
HTML tag, which stands for "Bi-Directional Override," is used to control the direction of text within an HTML document, particularly in situations where text needs to be displayed in a direction that is different from the surrounding text. It is commonly employed when dealing with languages that are written from right to left, such as Arabic or Hebrew, within predominantly left-to-right text, like English. By using the <bdo>
tag, web developers can explicitly specify the text direction, ensuring proper rendering and readability for multi-directional content.
Properties
- Permitted Parents
- Any element that accepts phrasing content
- Content
- Inline and text
- Start/End Tags
- Start tag: required, End tag: required
Example
<bdo dir="rtl">This text is going to be a bit difficult to read!</bdo>
Attributes
Attribute | Definition |
---|---|
dir |
Specifies the text direction for the content in
an element.
|
Global Attributes
The <a>
tag also supports the Global Attributes in HTML5
Event Attributes
The <a>
tag also supports the Event Attributes in HTML5
Browser Support
The following table will show you the current browser support for the HTML <bdo>
tag.
Desktop | |||||
12 | 15 | 10 | 15 | 4 |
Tablets / Mobile | |||||
18 | 10 | 14 | 3.2 | 1 | 4.4 |
Last updated by CSSPortal on: 30th March 2024