<rp> Tag Syntax
Rules for coding HTML rp
elements
<body> ... ... phrasing content expected ... <ruby>... phrasing content ... <rp> (</rp><rt>... phrasing content ...</rt><rp>) </rp> ... </ruby> ... </body>
Rules for coding HTML rp
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 the rp element for the opening ruby parenthesis immediately following the phrasing content for the base text that is to be annotated.
- Begin the rp element with a starting <rp> 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 <rp> tag as appropriate.
- End the rp element with a matching
</rp>
closing tag. - Inside the rp element, between the starting
<rp>
tag and the ending</rp>
tag, code the inner HTML phrasing content, which will usually consist of just an opening parenthesis along with optional white space. - After the ending </rp> tag for the opening ruby parenthesis, code an rt element with the annotation that applies to the text just before the opening ruby parenthesis.
- After the ending </rt> tag of the rt element for the annotation, code another rp element with the closing ruby parenthesis. The inner HTML will usually consist of just a closing parenthesis along with optional white space.
Content Model
Content of the rp element
The content of the rp element can include HTML comments, text content and only those HTML tags that can be used in phrasing content.