Warning:
This wiki has been archived and is now read-only.
Elements/rp
From HTML Wiki
< Elements
<rp>
The <rp> element can be used to provide parentheses around a ruby text component of a ruby annotation.
Point
- Parentheses be shown by user agents that don't support ruby annotations.
HTML Attributes
See global attributes.
Examples
Example A
The example above, in which each ideograph in the text 漢字 is annotated with its phonetic reading, could be expanded to use rp so that in legacy user agents the readings are in parentheses [try it]:
<p>
...
<ruby>
漢 <rp>(</rp><rt>かん</rt><rp>)</rp>
字 <rp>(</rp><rt>じ</rt><rp>)</rp>
</ruby>
...
</p>
HTML Reference
The HTML5 specification defines the <rp> element in 4.6.21 The rp element.