Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
The <bdo> HTML element overrides the current directionality of text, so that the text within is rendered in a different direction.
The text's characters are drawn from the starting point in the given direction; the individual characters' orientation is not affected (so characters don't get drawn backward, for example).
This element's attributes include the global attributes.
dirThe direction in which text should be rendered in this element's contents. Possible values are:
The HTML 4 specification did not specify events for this element; they were added in XHTML. This is most likely an oversight.
| Flow content, phrasing content, palpable content. |
| Phrasing content. |
| None, both the starting and ending tag are mandatory. |
| Any element that accepts phrasing content. |
| generic |
| Any |
| HTMLElement Up to Gecko 1.9.2 (Firefox 4) inclusive, Firefox implements the HTMLSpanElement interface for this element. |
| HTML # the-bdo-element |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Apr 24, 2026 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.