HTML · Text and inline semantics

bdi

Isolates text whose direction may differ from the surrounding content, such as a username.

Syntax
<bdi>…</bdi>

Example

Try it

More in this group

abbr b bdo blockquote br cite code data (element)

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course