<rp>...</rp>

HTML4 HTML5

The <rp> tag (short for Ruby Fallback Parenthesis) is used exclusively as a fallback for very old browsers that cannot display small phonetic annotations above text (so-called Ruby annotations, used mainly in Asian languages like Japanese or Chinese)[cite: 3].

It works like a "safety net"[cite: 3]:

Both opening and closing tags are mandatory[cite: 3].

Attributes:

Simple Step-by-Step Example

Imagine we want to add pronunciation (phonetics) to the Japanese character 漢 (read as kan)[cite: 3]:

  1. <ruby> – main container[cite: 3].
  2. 漢 – main character[cite: 3].
  3. <rp>(</rp> – opening parenthesis (visible only in old browsers)[cite: 3].
  4. <rt>kan</rt> – small phonetic text[cite: 3].
  5. <rp>)</rp> – closing parenthesis (visible only in old browsers)[cite: 3].

Code:

<p> Word with pronunciation tip: <ruby> 漢 <rp>(</rp><rt>kan</rt><rp>)</rp> </ruby> </p>

The browser will interpret this code as follows (in your browser, the word "kan" will appear in a small font above the character, and the parentheses inside <rp> will be hidden)[cite: 3]:

Word with pronunciation tip: 漢 (kan)