Posts in current category

HTML5 <bdo> tag

May 03, 2021 13:20 HTML5

Table of contents

Definitions and usages

The label overrides the default text orientation. bdo refers to bidi override .

In this example, we'll change the direction in which the text is displayed so that it appears from right to left:

<p><bdo dir="rtl">该段落文字从右到左显示</bdo></p>

Give it a try yourself

The difference between HTML 4.01 and HTML 5

There are no events describing this element in the specification documentation for HTML4, they are added in XHTML. This should have been negligence at the time.


Property Value Describe
  • ltr
  • Rtl
Necessary. Define the direction of the text.

The standard property

Labels support standard properties in HTML 5.

The event property

The label supports event properties in HTML 5.