HTML CSS examples for HTML Tag:bdo
The bdo element marks text direction for its content.
The bdo element dir attribute sets the values of rtl (for right-to-left layout) and ltr (for left-to-right layout).
The bdo Element summary
Item | Value |
---|---|
Element | bdo |
Local Attributes | None, but the dir global attribute is required |
Tag Style | Start and end tag |
New in HTML5 | No |
Changes in HTML5 | None |
Style Convention | None |
The following code shows the bdo element in use.
<!DOCTYPE html> <html> <head> <title>Example</title> </head> <body> <p> This is left-to-right: <bdo dir="ltr">I like CSS</bdo> </p> <p> This is right-to-left: <bdo dir="rtl">I like HTML</bdo> </p> </body><!-- ww w .j ava 2 s . com--> </html>