In the example above, the text "kan" and "ji" will be displayed above the characters 漢 and 字 respectively. The
Explanation
The <rp>
tag is used to provide parentheses around the ruby text that is not supported by the browser. The text inside the <rp>
tag is displayed only if the ruby text cannot be rendered. In East Asian typography, ruby text is used to display the pronunciation of the characters.
Use
The <rp>
tag should be used with the <ruby>
tag to define the ruby text. The ruby text is used to display the pronunciation of East Asian characters, such as Chinese or Japanese. The
Important Points
- The
<rp>
tag does not have any attributes.
- The content inside the
<rp>
tag is displayed only if the browser does not support the ruby text.
- The
<rp>
tag is used in conjunction with the <ruby>
tag to define the ruby text.
Summary
The <rp>
tag is used to provide parentheses around the ruby text that is not supported by the browser. The content inside the <rp>
tag is displayed only if the browser does not support the ruby text. The <rp>
tag should be used in conjunction with the <ruby>
tag to define the ruby text.