By
Raqueebuddin Aziz
July 13, 2023
Freelance Web Designer & Developer
By
July 13, 2023
Freelance Web Designer & Developer
The bdo
(bi-directional override) tag can be used to override the text direction in your HTML.
You can use the dir
attribute with the bdo
tag to override the default text directionality.
Note that the dir
attribute has special behavior with the bdo
tag.
<p>This is normal direction for English language</p>
<p dir="rtl">
This is RTL direction for English language but the text still flows left to right and is readable
</p>
<bdo dir="rtl">
This is RTL direction for English language but the text flows right to left and is hard to read
</bdo>
This is normal direction for English language
This is RTL direction for English language but the text still flows left to right and is readable
This is RTL direction for English language but the text flows right to left and is hard to readI can’t think of any practical use cases for the bdo
tag except for games I guess.
It’s a weird tag but if it’s exists there is probably a use case for it.
Leave a comment down below, if you have a use case for the bdo
tag
© 2024 Raqueebuddin Aziz. All rights reserved.