English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

Complete list of HTML tags

HTML: <rp> tag

The HTML <rp> element is used to provide subsequent parentheses for browsers that cannot display ruby annotations using the <ruby> element.

Online example

A ruby annotation:

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>Basic Tutorial Website(oldtoolbag.com)</<title> 
</<head>
<body>
<ruby>
  Han <rp>(</rp><rt>Kan</rt><rp>)</rp>
  Character <rp>(</rp><rt>ji</rt><rp>)</rp>
</ruby>
</body>
</html>
Test and see ‹/›

Browser compatibility

IEFirefoxOperaChromeSafari

IE 9+Firefox, Opera, Chrome, and Safari support the <rp> tag.

Note:IE 8 Or earlier versions of IE browsers do not support the <rp> tag.

Definition and Usage of Tags

The <rp> tag is used in ruby annotations to define the content displayed by browsers that do not support the ruby element.

Ruby annotations are Chinese phonetic or characters. Used in East Asia, it displays the pronunciation of East Asian characters. For example, the text using Japanese Romaji and Chinese pinyin.

The <rp> element is used for situations where the <ruby> element is not supported. The content of <rp> provides what should be displayed, usually in parentheses to indicate the presence of the ruby annotation.

when used with the <rp> tag <ruby> and <rt> used together with tags:
The <ruby> element consists of one or more characters that need to be explained/consists of a character with pronunciation and a <rt> element that provides this information, and also includes an optional <rp> element, which defines the content to be displayed when the browser does not support the "ruby" element. The <rp> element content usually provides what should be displayed, often in parentheses to indicate the presence of the ruby annotation.

HTML 4.01 with HTML5differences

The <rp> tag is a part of HTML5 introduced new tags.

Global Attributes

Support for <rp> tag Global Attributes of HTML.

Event Attributes

Support for <rp> tag HTML Event Attributes.