bdi

abbr.

both days included Starting and ending dates are included


html5<bdi> tag syntax

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> tag example

<!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