rp
Provides fallback parentheses for browsers that do not support ruby annotations.
Description
The <rp> element is used to provide fallback parentheses for browsers that do not support display of ruby annotations using the <ruby> element. The content of <rp> is typically parentheses, but can be any text that helps indicate the annotation.
In browsers that support ruby, the content of <rp> is hidden. In browsers without ruby support, it's displayed, wrapping the annotation text in parentheses (or whatever characters you provide).
Basic Example
How It Renders
The <rp> element provides graceful degradation:
Why Use rp?
Without <rp>, browsers that don't support ruby will show confusing output:
Multiple Annotations
Each ruby text should have its own pair of rp elements:
Alternative Characters
You can use brackets or other characters instead of parentheses:
Attributes
This element supports global attributes.
Accessibility
The <rp> content is typically hidden from screen readers in browsers that support ruby. In non-supporting environments, the parentheses help clarify that the text in them is an annotation of the preceding text.