concept

Ruby fallback parentheses — CSS reference

The rp element supplies punctuation around readings for environments without native ruby presentation. Ruby-aware UA styles normally hide these parentheses. The example includes both opening and closing punctuation.

Formal Syntax & Structure

css syntaxcss
<ruby>東京<rp>(</rp><rt>とうきょう</rt><rp>)</rp></ruby>

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>Ruby fallback parentheses</title><style>body{margin:8px;font:32px/1.5 monospace;color:#172033;background:white}rt{font:16px/1.2 monospace}math{font-size:40px}
</style><body><p lang="ja"><ruby id="r"><span id="b">東京</span><rp id="p1">(</rp><rt id="t">とうきょう</rt><rp id="p2">)</rp></ruby></p></body></html>
CSS Reference