HTML <bdi> Tag
User <bdi>إيان</bdi>: 1089 posts
The <bdi>
element allows you to isolate a span of text from its surroundings for the purposes of bidirectional text formatting.
The <bdi>
element is useful for displaying right-to-left text (such as Hebrew, Arabic, Persian, Thaana, Urdu, etc) inside left-to-right text (such as English) when the text-direction is unknown (for example, with user generated content).
How to Use the above Code
- Replace the value of the
<bdi>
element with the text that should be isolated from the surrounding text for bidirectional formatting purposes. - Replace the the rest of the content with your own code.