Description
The HTML element <rp>
is used to define a fall-back parenthesis around a ruby text on the browsers that don't support ruby annotations.
Ruby annotations are used for showing the pronunciation of East Asian characters like Chinese or Japanese characters.
The below table summarizes its usage.
Usage Details | |
Placement | It is displayed as an Inline element. |
Contents | It can contain Inline elements and text. |
Tags | Both the opening and closing tags are required. |
Versions | HTML 5 |
Syntax
Here is the basic syntax of the <rp>
element.
<rp>...</rp>
Examples
<!DOCTYPE html>
<html lang="en">
<head>
<title>Example - HTML Element rp</title>
</head>
<body>
<ruby>
漢 <rp>(</rp><rt>Kan</rt><rp>)</rp>
字 <rp>(</rp><rt>ji</rt><rp>)</rp>
</ruby>
</body>
</html>
Attributes
The following table shows the list of supported and unsupported attributes for the <rp>
element.
Attribute Type | Details |
Element-Specific Attributes | The tag <rp> doesn't have any element-specific attributes. |
Global Attributes | Like all other HTML tags, the tag <rp> supports the HTML Global Attributes. |
Event Attributes | The tag <rp> also supports the HTML Event Attributes. |
Browser Compatibility
The tag <rp>
is supported in all modern browsers.
- Google Chrome 5+
- Internet Explorer or Edge 5.5+
- Firefox x
- Apple Safari 5+
- Opera 15+