HTML <rp> Tag

The <rp> tag defines an alternative text, displayed in the browsers, that do not support the <ruby> tag. The <ruby> tag defines furigana (also called yomigana or ruby) annotations, pronunciation guide for relatively obscure characters in Japanese or East Asian languages.

The <rp> tag is a new element in HTML5.

The browsers that support the <ruby> tag, don’t display the text inside the <rp> tag. The <rp> tag is placed before or after the <rt> tag, which defines the annotation of the text in the <ruby> tag.

Syntax

The <rp> tag comes in pairs; the closing tag isn’t required, if it comes the last.

Example

<!DOCTYPE html>
<html>
  <head>
    <title>Title of the document</title>
  </head>
  <body>
    <ruby><rp>(</rp><rt>Kan</rt><rp>)</rp><rp>(</rp><rt>ji</rt><rp>)</rp>
    </ruby>
  </body>
</html>

Result

Attributes

The <rp> tag supports the Global Attributes and the Event Attributes.

Browser support

5+ 5.5+ 38+ 5+ 15+