: The BDI Element
Last updated: 2026-09-12
<bdi>The BDI Element
Bi-directional isolation: treats its text as an isolated direction segment, avoiding mixed-direction contamination.
| Category | Text Content |
|---|---|
| Content Model | Flow content |
| Allowed Parents | Any element that accepts flow content |
| Content Tag | Yes — requires closing </bdi> tag |
| Status | Standard |
📝 Syntax
<bdi>username</bdi>
▶ Example
Edit the code below and see the live result in the playground:
🌐 Browser Support
| Browser | |||||
|---|---|---|---|---|---|
| <bdi> | ✓ v1 | ✓ v12 | ✓ v1 | ✓ v1 | ✓ v1 |
| Supported in all major browsers | |||||
Tip: bdi is like dir=auto but creates a strong isolation boundary; great for untrusted user content.
🏷️ Related Tags
💡 Related Cases
More case studies coming soon — check back later.