HTML Bdo <bdo>

Usage

The HTML bdo tag defines the direction of the text.

Default is left to right, ltr, however if you want your text to go right to left, rtl, you can use this tag for that portion of text.

Code:


<!DOCTYPE html>
<html>
<head>
<!-- This is the stylesheet John created in 2020 -->
<link rel="stylesheet" href="/file/stylesheet.css">
</head>

<body>

<div id="openingparagraphs">

<p>Welcome to my webpage and paragraph 1.</p>

<p>I have so much to say I'm going to need a lot of paragraphs!</p>

<p><bdo dir="rtl">Let's see how this text looks right to left.</bdo></p>

</div>

</body>

</html>

Output:

Welcome to my webpage and paragraph 1.

I have so much to say I’m going to need a lot of paragraphs!

Let’s see how this text looks right to left.