html5<bdi> tag


  Translation results:

bdi

abbr.

both days included Starting and ending dates are included


html5<bdi> tagsyntax

Function: bdi refers to bidi isolation. The <bdi> tag allows you to set a piece of text independent of the text direction setting of its parent element. This tag is useful when posting user comments or other content that you don't have complete control over.

Parameters:

AttributeValueDescription
dir

ltr

rtl

auto

Optional. Specifies the text direction of text within the <bdi> element. Default value: auto.

html5<bdi> tagexample

<!DOCTYPE HTML>
<html>
<body>

<ul>
<li>Username <bdi>Bill</bdi>:80 points</li>
<li>Username <bdi>Steve</bdi>: 78 points</li>
</ul>

</body>
</html>
Run instance »

Click the "Run instance" button to view the online instance

Home

Videos

Q&A