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>该段落文字从左到右显示</p>
<p><bdo dir="rtl">该段落文字从右到左显示</bdo></p>
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
Property | Value | Describe |
---|---|---|
dir |
|
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.