English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML-Referenzhandbuch

HTML-Tag-Übersicht

HTML: <bdo> Tag

<bdo>-Element (HTML-Dual-Directional-Overlay-Element) wird verwendet, um die Ausrichtung des aktuellen Textes zu überlagern, was dazu führt, dass die Zeichen in der angegebenen Richtung angeordnet werden.

Online-Beispiel

Textausrichtung angeben:

!doctype html
<html>
<head>
<meta charset="UTF-8">
<title>HTML5 Beispiel von de.oldtoolbag.com/title>
</head>
<body>
<h1>Berühmte Küstenlieder/h1>
<p>Die englische Lied "Oh, ich liebe es, am Meer zu sein"/p>
<p>Sieht so aus auf Hebräisch: <span dir="rtl">Ah, ich liebe es, am Meer zu sein</span>/span>/p>
<p>Im Computer39Erinnerung, dies wird gespeichert, als <bdo dir="ltr">Ah, ich liebe es, am Meer zu sein</bdo>/bdo></p>
<p>The text in this paragraph is displayed from left to right.</p>  
<p><bdo dir="rtl">The text in this paragraph is displayed from right to left.</bdo></p>
</body>
</html>
Test and see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the <bdo> tag.

Tag Definition and Usage Description

bdo stands for bidi override (Bi-directional Override).-Directional Override).

<bdo> Tag is used to override the default text direction.

HTML 4.01 and HTML5The difference between

None.

Attribute

AttributeValueDescription
dirltr
 rtl

Required. Specifies the text direction within the <bdo> element.

The attribute value can be:
    ltr: Writes from left to right, similar to modern Chinese writing habits.
    rtl: Writes from right to left, similar to ancient Chinese writing habits.

Global Attributes

<bdo> Tag Supported HTML Global Attributes.

Event Attributes

<bdo> Tag Supported HTML Event Attributes.