<bdo> Tag Syntax
Rules for coding HTML bdo
elements
<body> ... ... phrasing content expected ... <bdo dir="direction">... phrasing content ...</bdo> ... </body>
Rules for coding HTML bdo
elements
Make sure you understand the difference between a tag and element and are familiar with the definitions of namespace and other HTML terms.
- Code the bdo element where phrasing content is expected.
- Begin the bdo element with a starting <bdo> tag. The element name uses lower case letters and should be in the HTML namespace, which it will pick up automatically from the
xmlns
attribute on the <html> tag. - Inside the starting <bdo> tag code the required
dir
attribute with the direction along with any HTML global attributes as appropriate. - Inside the bdo element, between the starting
<bdo>
tag and the ending</bdo>
tag, code the inner HTML phrasing content. - End the bdo element with a matching
</bdo>
closing tag.
Content Model
Content of the bdo element
The content of the bdo element can include HTML comments, text content and only those HTML tags that can be used in phrasing content.