<bdi> HTML Tag. What does <bdi> HTML Tag do? The <bdi> element is used to isolate a small section of text which may be formatted to run in the opposite direction than the text around it (such as right-to-left in a left-to-right context).