HTML rp - how to use <rp> tag

The HTML <rp> tag is used to define extra information to be rendered if the ruby tag cannot be rendered.

The <rt> tag is used with the <ruby> and <rp> tags. The <ruby> tag contains the text that needs to be defined and the <rt> tag is used to define the pronunciation. The <rp> tag is optional and it contain text that will be displayed if the <ruby> tag cannot be rendered.


The rp tag supports the global and event attributes.


<ruby><rt><rp>(</rp>Random Chinese Characters<rp>)</rp></rt> </ruby>

Related HTML tags:

  • <ruby> - used to define characters in East Asian language
  • <rt> - used to define pronunciation of the characters within the ruby tag