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

Manual de referência HTML

大全 de etiquetas HTML

Etiqueta <bdo> do HTML

O elemento <bdo> (Elemento de cobertura bidirecional HTML) é usado para cobrir a direção do texto atual, permitindo que os caracteres sejam alinhados na direção especificada.

Exemplo online

Especificar a direção do texto:

!doctype html
<html>
<head>
<meta charset="UTF-8">
<title>HTML5 Exemplo por pt.oldtoolbag.com</title>
</head>
<body>
<h1>Cantigas famosas de praia/h1>
<p>A música inglesa "Oh, eu gosto de estar na praia do mar"/p>
<p>Assim parece em hebraico: <span dir="rtl">Ah, eu gosto de estar na praia do mar</span>/p>
<p>No computador39Lembre-se da memória, isso é armazenado como <bdo dir="ltr">Ah, eu gosto de estar na praia do mar</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 mainstream browsers support the <bdo> tag.

Definition and usage of tags

bdo refers to bidi override (Bi-directional Override).-Directional Override).

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

HTML 4.01 and HTML5Differences between

None.

Attribute

AttributeValueDescription
dirltr
 rtl

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

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

Global attributes

Support for <bdo> tag Global attributes of HTML.

Event attributes

Support for <bdo> tag Event attributes of HTML.