<rt> Tag Syntax
Rules for coding HTML rt
elements
<body> ... ... phrasing content expected ... <ruby>... phrasing content ... <rp> (</rp><rt>... phrasing content ...</rt><rp>) </rp> ... </ruby> ... </body>
Rules for coding HTML rt
elements
Make sure you understand the difference between a tag and element and are familiar with the definitions of namespace and other HTML terms.
- Inside a ruby element, code an rt element following the phrasing content for the base text that is to be annotated.
- Optionally include an rp element for the opening ruby parenthesis before the rt element.
- Begin the rt element with a starting <rt> 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. - Include any HTML global attributes on the <rt> tag as appropriate.
- Inside the rt element, between the starting
<rt>
tag and the ending</rt>
tag, code the inner HTML phrasing content with the text for the annotation of the base text. - End the rt element with a matching
</rt>
closing tag. - If an rp element was coded before the rt element, code another rp element for the closing ruby parenthesis after the ending </rt> tag.
Content Model
Content of the rt element
The content of the rt element can include HTML comments, text content and only those HTML tags that can be used in phrasing content.