The <rp> element provides fallback parentheses for browsers that cannot display <ruby> annotations. Put one <rp> before and one after the <rt> reading so limited UAs can still show something like 漢 (kan).
Supporting browsers hide the parentheses and draw the reading above or beside the base text. Use plain base text + rt + optional rp — skip deprecated <rb> and <rtc>.
Baseline · Widely available.
Not deprecated. Stable across browsers since about July 2015 (and earlier in practice).
Note.
<rp> must sit inside <ruby>, immediately before or after <rt>. Content is plain text — usually ( and ).
Syntax
HTML Syntax
syntax.html
<rp>(</rp><rt>…</rt><rp>)</rp>
The end tag may be omitted if <rp> is immediately followed by <rt> or another <rp>, or when the parent ends. Beginners should write both tags for clarity.
Reference
Attributes
The <rp> element has no element-specific attributes — only global attributes.
Display: supporting browsers hide rp; others show the marks.
Modern set:ruby + rt + rp — not rb / rtc.
One line: wrap each <rt> with <rp>(</rp> … <rp>)</rp> for readable ruby fallbacks.
UA style
Default CSS Settings
Typical behavior in browsers that support ruby (parentheses are not shown):
default.css
rp {
display: none;
}
Engines without ruby layout treat rp more like normal text, so the ( and ) appear inline with the reading.
Frequently Asked Questions
The rp element holds fallback parentheses around ruby text (rt). Browsers that cannot show ruby layout display those parentheses so the reading still looks clear, for example 漢 (kan).
Usually no. Supporting browsers hide rp and draw the reading above or beside the base text. rp is for older or limited user agents.
Inside ruby, immediately before and after the rt element: <rp>(</rp><rt>…</rt><rp>)</rp>.
Not required for the annotation to work in modern browsers, but recommended so fallback rendering stays readable.
No. It is Baseline and widely available. Deprecated pieces of the ruby model are rb and rtc — not rp.
Yes in HTML when rp is immediately followed by rt or another rp, or when the parent has no more content. Beginners can write both tags for clarity.