html
  1. html-rp-tag

HTML <rp> Tag

  • The HTML <rp> (ruby parenthesis) tag is used to provide parentheses around the ruby text that is not supported by the browser.
  • The text inside the <rp> element is used to describe the ruby text, and it is rendered by the browser only if the ruby text cannot be rendered.
  • The <rp> tag can be used in conjunction with the <ruby> tag, which is used to display the pronunciation of East Asian characters.

Syntax

The syntax for the <rp> tag is:

<rp>parenthesis</rp>

The content inside the <rp> tag is displayed only if the browser does not support the ruby text.

Example

Consider the following example:

<ruby>
漢<rp>(</rp><rt>kan</rt><rp>)</rp>
字<rp>(</rp><rt>ji</rt><rp>)</rp>
</ruby>
Try Playground

In the example above, the text "kan" and "ji" will be displayed above the characters 漢 and 字 respectively. The tag is used to provide parentheses around the ruby text if it is not supported by the browser.

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 tag provides parentheses around the ruby text if it is not supported by the browser.

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.

Published on: