Skip to main content

HTML <rp> Tag

The HTML <rp> tag is an element used to provide fallback text in the case of browsers not supporting the ruby annotation. It allows developers to create annotations or furigana for CJK (Chinese, Japanese and Korean) languages. This can be a useful tool for providing pronunciation guidance for unfamiliar words and also for inserting specific characters.

To illustrate its use, we can look at one simple example:


This code will display the character , with the pronunciation of appearing as a tooltip when hovering over it

Another example using ruby annotation can be seen here:

(fāng) 便(biàn)(miàn)

The three characters 方便面, along with their individual pronunciations with respect to Mandarin, are displayed by this code snippet.