Name

rp — HTML5

Synopsis

<rp> . . . </rp>

Used within the ruby element to provide parentheses around ruby text to be shown by user agents that don’t support ruby annotations.

Notes

HTML5 only.

Start/End Tags

Required/Required

Attributes

HTML5 Global Attributes

Example

See also the ruby listing.

In the following example, a browser that cannot display ruby annotation would display the rt content in parentheses after the ideograph:

<ruby>
 汉 <rp>(</rp><rt>hàn</rt><rp>)</rp><rp>(</rp><rt>zì</rt><rp>)</rp>
</ruby>

This example was taken from the HTML5 Working Draft at whatwg.com, used with permission under an MIT License.

Get HTML & XHTML Pocket Reference, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.