HTML bdo dir Attribute
Definition and Usage
The dir attribute specifies flow direction of the elements text (left-to-right or right-to-left).Syntax
<bdo dir="text_direction"> |
Syntax Example
<a target="_blank"> |
Attribute Values
Value | Description |
---|---|
ltr | Text direction left-to-right |
rtl | Text direction right-to-left |
Browser Support
The attribute is supported in all major browsers.Note: Not supported in Safari 2 or earlier versions.
Example
Source | Output |
---|---|
<p>Hello world. <bdo dir="rtl">Hello world</bdo></p> | Hello world. Hello world |
HTML bdo dir Attribute
Reviewed by 1000sourcecodes
on
08:53
Rating: