English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The HTML <bdi> element (Bi-directional Isolation element) isolates external text that may be formatted in different directions. It is very useful when the direction of the text is unknown, such as text from a database (which has a text direction).
Isolate the username from the surrounding text direction settings:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Basic Tutorial(oldtoolbag.com)<//title> </head> <body><ul> <li><bdi class="name">Evil Steven</bdi>: 1st place</li> <li><bdi class="name">François fatale</bdi>: 2nd place</li> </ul> </body> </html>Test and see ‹/›
IEFirefoxOperaChromeSafari
bdi stands for bidi isolation (Bi-directional Isolation).-directional Isolation).
The <bdi> tag allows you to set a block of text so that it is separated from the text direction setting of its parent element.
is very useful when publishing user comments or other content you cannot fully control.
<bdi> tag is HTML5 new tag.
Support for <bdi> tag Global attributes of HTML.
Support for <bdi> tag HTML event attributes.