< All the HTML Tags >

<rp></rp>

Video Coming Soon...

  • rp

    Tag Type

    inline

    Tag Category

    text formatting

    Provides fallback text for browsers that don't support ruby annotations.

    Viewed

    1

    Examples

    1

Definition:

The HTML <rp> tag is used alongside the <ruby> annotation to provide parentheses or fallback text for browsers that do not support ruby annotations.

In cases where a browser cannot display ruby text, the content within the <rp> tag will be shown as a fallback option. This is especially important for maintaining accessibility and readability, as it ensures that users with incompatible browsers still receive context for the annotated text.

Typically, `<rp>` is placed immediately after the corresponding `<rb>` and before the `<rt>` tags in a ruby structure. When rendered, the content of `<rp>` is displayed as plain text, often in parentheses, surrounding the ruby text. This approach improves the user experience by providing additional context or pronunciation, making it easier to understand complex characters or phrases.

Attributes:

Global attributes (e.g., class, id, style)

Accessibility:

Coming Soon…

Default rp Example:

Ruby fallback for older browsers
<ruby>漢 <rp>(</rp><rt>hàn</rt><rp>)</rp></ruby>

Default rp Result:


Coming Soon…

Community Examples:

Coming Soon…
Coming Soon…