HTML <bdi> Tag

Description

The <bdi> HTML element indicates a fragment of text that should be isolated from changing the direction of the text output. This behaviour is important for texts that simultaneously contain different languages, read from left to right and from right to left.

Properties

Permitted Parents
Any element that accepts phrasing content
Content
Inline and text
Start/End Tags
Start tag: required, End tag: required

Example

<ol>
<li>User <bdi>mod</bdi>: 965 posts</li>
<li>User <bdi>user</bdi>: 322 posts</li>
<li>User <bdi>إيان</bdi>: 150 posts</li>
<li>User <bdi>abc1</bdi>: 1 post</li>
</ol>

Attributes

None

Global Attributes

The <bdi> tag also supports the Global Attributes in HTML5

Event Attributes

The <bdi> tag also supports the Event Attributes in HTML5

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
XX161015X
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
≤37181014X1.0