CKTIS / HTML
rp — fallback parentheses for ruby annotations
The `rp` element supplies parentheses or other separators around ruby annotations for browsers without ruby support.
Version: WHATWG HTML Living Standard; index snapshot date recorded separately
Syntax
<ruby>base<rp>(</rp><rt>annotation</rt><rp>)</rp></ruby>rp contains fallback text, usually parentheses surrounding a pronunciation annotation. ruby associates base text with an annotation, while rt contains the annotation itself; rp does not replace it.
Place rp as a child of ruby, immediately before or after rt. Its content is text, not elements. It supports global attributes. Inside ruby, it represents nothing independently; elsewhere it represents its children, but that placement is nonconforming.
A ruby-capable browser normally hides rp; fallback rendering shows the separators inline. In text/html, its end tag may be omitted before another rt or rp, or at the end of its parent's content. The example uses explicit end tags.
Examples
<!doctype html>
<html lang="ja">
<meta charset="utf-8">
<title>rp</title>
<p><ruby>山<rp>(</rp><rt>やま</rt><rp>)</rp></ruby></p>
</html>Result
Ruby: 山 + やま; fallback: 山(やま)
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.