<rp>

HTML <rp> Tag

The <rp> tag specifies an alternative text, displayed in the browsers, that don’t support the <ruby> tag defining ruby annotations, which are often used in Japanese publications.

The <rp> tag is one of the HTML5 elements.

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

Syntax

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

Example of the HTML <rp> tag:

<!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

Attributes

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



请遵守《互联网环境法规》文明发言,欢迎讨论问题
扫码反馈

扫一扫,反馈当前页面

咨询反馈
扫码关注
返回顶部