HTML5 <rp> Tag

The HTML <rp> tag is used to provide fall-back parentheses for browsers that do not support display of ruby annotations using the <ruby> element.

The only content permitted inside this element is text. Both the starting and ending tag are mandatory for this element. The parent of the <rp> tag can be a <ruby> element. <rp> must be positioned immediately before or after an <rt> element.

Ruby annotations are for showing pronunciation of East Asian characters, like using Japanese furigana or Taiwanese bopomofo characters. The <rp> element is used in the case of lack of <ruby> element support. The <rp> content provides what should be displayed in order to indicate the presence of a ruby annotation, usually parentheses.

Here are some examples of using this tag:

<ruby> 
  漢 <rp>(</rp><rt>Kan</rt><rp>)</rp>
  字 <rp>(</rp><rt>ji</rt><rp>)</rp>
</ruby>

Attributes

This element only accepts global attributes.

Further Reading

  1. Read more about the HTML <rp> element on MDN.
  2. You can also read the HTML <rp> tag reference on W3C.

Reader Comments

1. You can register or login to post a comment. Asking readers to register improves the quality of discussion.

2. As a registered user, you will also get to access features like choosing between a light and dark theme or anything else that we might implement in future.

Follow Us For Updates

FacebookTwitterGoogle+
Go To Top