HTML bdo dir Attribute
HTML <bdo> tag
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
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
|
Try-It-Yourself Demos
bdo dir
attribute example
Change the text flow direction.
HTML <bdo> tag
Whether you're new to XML or already an advanced user, the user-friendly views
and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to
meet your XML and Web services development needs from start to finish.
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- Support for Office Open XML (OOXML)
- Graphical WSDL editor & SOAP debugger
- Java, C#, C++ code generation
- And much more!
Download a fully functional free 30-day trial today!
|