English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The <bdo> element (HTML bidirectional override element) is used to override the current text direction, allowing characters to be arranged in the given direction.
Specify text direction:
<!doctype html> <html> <head> <meta charset="UTF-8"> <title>HTML5 Example by www.oldtoolbag.com/title> </head> <body> <h1Famous seaside songs/h1 The English song "Oh I do like to be beside the seaside"/p> Looks like this in Hebrew:/span>/p> In the computer39Memory; this is stored as/bdo></p> <p>The text of this paragraph is displayed from left to right.</p> <p><bdo dir="rtl">The text of this paragraph is displayed from right to left.</bdo></p> </body> </html>Test and see ‹/›
IEFirefoxOperaChromeSafari
All mainstream browsers support the <bdo> tag.
bdo refers to bidi override (Bi-directional Override).-Directional Override).
<bdo> tag is used to override the default text direction.
None.
Attribute | Value | Description |
---|---|---|
dir | ltr rtl | Required. Specifies the text direction within the <bdo> element. The attribute value can be: |
Support for <bdo> tag Global attributes of HTML.
Support for <bdo> tag HTML event attributes.